Summary
python-statemachine evaluates the expr attributes of <data> elements in SCXML documents with eval(), allowing arbitrary code execution if an application processes attacker-controlled SCXML content. The source rates it critical (CVSS 4.0: 9.3) and lists version 3.2.0 as the fixed release.
What happened
The python-statemachine library evaluates the expr attributes of <data> elements in SCXML documents using Python's eval() function, with no sandboxing or restrictions. Any application that passes attacker-controlled SCXML content to SCXMLProcessor may end up executing arbitrary code in the context of the hosting process. The source classifies it as an eval injection (CWE-95, also CWE-94) and identifies it as CVE-2026-47103 / GHSA-v4jc-pm6r-3vj8.
Why it matters
According to the source, the impact can be remote or local code execution, depending on whether the application using the library accepts SCXML from remote users, uploaded files, configuration, plugins, or other untrusted sources. The score is CVSS 4.0: 9.3 (vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N), with critical severity. CISA's KEV catalog does not list known exploitation of this vulnerability, and the source does not state active exploitation.
Affected products and versions
python-statemachine (PyPI): versions >= 3.0.0, < 3.2.0. The description explicitly mentions version 3.1.2. Fixed version: 3.2.0.
| Product | Versions | Fixed in |
|---|---|---|
| python-statemachine | >= 3.0.0, < 3.2.0 | 3.2.0 |
Action recommended by the source
The source lists 3.2.0 as the fixed version, so the vendor recommends upgrading to that version or later. The source does not describe other mitigations.
Fixed in: 3.2.0
Sources and references
- https://github.com/advisories/GHSA-v4jc-pm6r-3vj8 — GHSA
- https://github.com/fgmacedo/python-statemachine/security/advisories/GHSA-v4jc-pm6r-3vj8 — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-47103 — GHSA
- https://github.com/fgmacedo/python-statemachine/releases/tag/v3.2.0 — GHSA
- https://www.vulncheck.com/advisories/python-statemachine-rce-via-scxml-eval-injection — GHSA
- https://github.com/SaiTeja-Erukude/CVE-2026-47103-python-statemachine-rce — GHSA
- https://github.com/pypa/advisory-database/tree/main/vulns/python-statemachine/PYSEC-2026-506.yaml — GHSA
- https://pypi.org/project/python-statemachine — GHSA
Weaknesses (CWE): CWE-94, CWE-95
Relevant change history
Published
Advisory published.