Vulnerability · Published Jun 17, 2026 · Assigned by VulnCheck
CVE-2026-47103Python StateMachine 3.0.0 < 3.2.0 RCE via SCXML eval() Injection
Critical 9.8
In plain English
A critical-severity security flaw in python-statemachine from fgmacedo. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
Python StateMachine versions 3.0.0 before 3.2.0 contains a remote code execution vulnerability that allows attackers to execute arbitrary code by supplying malicious SCXML documents containing crafted `<data expr="...">` attributes evaluated unsafely. The SCXMLProcessor passes attacker-controlled expression strings through a call chain ending in Python's built-in eval() without sandboxing, enabling arbitrary code execution in the context of the hosting process.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | python-statemachine | 3.2.0 | GHSA-v4jc-pm6r-3vj8 |
| PyPI | python-statemachine | 3.2.0 | PYSEC-2026-506 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| fgmacedo | python-statemachine | 3.0.0 – before 3.2.0 |
Weakness: CWE-95 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- Researcher Disclosure technical-description, exploit
- Release Notes release-notes
- GitHub Security Advisory (GHSA-v4jc-pm6r-3vj8) vendor-advisory
- https://www.vulncheck.com/advisories/python-statemachine-rce-via-scxml-eval-injection third-party-advisory