---
id: CVE-2026-47103
title: >-
  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 evalu…
summary: >-
  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 evalu…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-95
  - CWE-94
vendor: fgmacedo
product: python_statemachine
affected:
  - 'python_statemachine >= 3.0.0, < 3.2.0'
patched:
  - python_statemachine 3.2.0
published: '2026-06-17'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T16:17:17.513'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-47103'
references:
  - url: 'https://github.com/SaiTeja-Erukude/CVE-2026-47103-python-statemachine-rce'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/fgmacedo/python-statemachine/releases/tag/v3.2.0'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/fgmacedo/python-statemachine/security/advisories/GHSA-v4jc-pm6r-3vj8
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/python-statemachine-rce-via-scxml-eval-injection
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/fgmacedo/python-statemachine/security/advisories/GHSA-v4jc-pm6r-3vj8
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-47103'
  - url: 'https://github.com/advisories/GHSA-v4jc-pm6r-3vj8'
tags:
  - nvd
  - cve.org
  - exploit-available
  - ghsa
  - pip
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-06-18T14:30:49.802580Z'
epss: 0.01363
epssPercentile: 0.71786
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/SaiTeja-Erukude/CVE-2026-47103-python-statemachine-rce'
  checkedAt: '2026-11-01T19:32:51.092Z'
ecosystem: pip
ingestedAt: '2026-06-19T03:39:00.826Z'
---

## Overview

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

- `python_statemachine >= 3.0.0, < 3.2.0`

## Remediation

Upgrade past the affected range:

- `python_statemachine 3.2.0`

## Package advisory (CVE-2026-47103)

Affected packages:

- `python-statemachine >= 3.0.0, < 3.2.0`

Patched in:

- `python-statemachine 3.2.0`

Source: https://github.com/advisories/GHSA-v4jc-pm6r-3vj8
