{"vuln_id":"GHSA-v4jc-pm6r-3vj8","aliases":["CVE-2026-47103"],"description":"python-statemachine SCXML <data expr> Eval Injection","published_at":"2026-06-18T14:28:02Z","modified_at":"2026-11-16T16:08:19Z","first_seen_at":"2026-11-21T19:15:20.254996Z","severity":"critical","severity_source":"ghsa","cvss_score":9.3,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-94","CWE-95"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-v4jc-pm6r-3vj8"},"matched_alias":null,"items":[{"id":2501,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-v4jc-pm6r-3vj8 / CVE-2026-47103: python-statemachine SCXML <data expr> Eval Injection","summary":"python-statemachine SCXML\nEval Injection\n\n### Summary\n\npython-statemachine 3.1.2 evaluates `\n` attributes in SCXML documents using Python's `eval()`. Any application that passes attacker-controlled SCXML content to `SCXMLProcessor` is vulnerable to arbitrary code execution in the context of the hosting process.\n\n### Details\n\n`SCXMLProcessor.parse_scxml_file()` processes SCXML documents and evaluates `\n` element `expr` attributes via the following call chain:\n\n```\nSCXMLProcessor.parse_scxml_file()\nSCXMLProcessor.process_definition()\ncreate_datamodel_action_callable()\n_create_dataitem_callable()\n_eval()\neval()\n```\n\n`_eval()` calls Python's built-in `eval()` directly on the expression string without sandboxing or restriction.\n\n### PoC\n\n```\n1. Install:\npip install python-statemachine==3.1.2\n\n2. Create an SCXML file containing:\n\n3. Run:\nSCXMLProcessor.parse_scxml_file(DATA_EXPR_CHART)\nSCXMLProcessor.start()\n\n4. During start(),\nreaches _eval(), which calls eval().\n\n5. Result:\ndata_marker_before_start: False\ndata_marker_after_start: True\nsuccess: True\n```\n\n### Impact\n\nThis is an eval injection vulnerability (CWE-95). Remote or local code execution depending on whether the consuming application accepts SCXML content from remote users, uploaded files, configuration, plugins, or other untrusted sources.\n\nAffected packages: pip:python-statemachine\nPatched: python-statemachine 3.2.0","url":"https://github.com/advisories/GHSA-v4jc-pm6r-3vj8","published_at":"2026-06-18T14:28:02Z","updated_at":"2026-11-16T16:08:19Z","fetched_at":"2026-11-21T19:15:18.416888Z","severity":"critical","cvss_score":9.3,"epss":0.01363,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"python-statemachine","vuln_id":"CVE-2026-47103","vuln_ids":["CVE-2026-47103","GHSA-V4JC-PM6R-3VJ8"],"tags":["ghsa","pip","CWE-94","CWE-95"],"cluster_id":2442,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2501","html":"https://vulnwatch.ve1ve2.com/item/2501"}}]}