CVE-2026-67544
Unauthenticated RCE via arbitrary Python in Playwright node (pre-0.0.71).
- CVSS 8.8
- CWE-94
- Input Validation and Sanitization
- Remote
Heym builds and runs agentic systems and business-process automations on self-hosted infrastructure. Prior to version 0.0.71, Heym's workflow engine accepts an arbitrary Python code string in the playwrightCode field of a Playwright node. This string is written to a temporary .py file and executed directly by the backend process via subprocess.Popen([sys.executable, script_path]) with no sandboxing, AST validation, or role gate. Any authenticated user — including a freshly registered account — can achieve full remote code execution (RCE) on the backend host, running as the service process user (observed as root in the default Docker deployment). This issue has been patched in version 0.0.71.
- CWE
- CWE-94
- CVSS base score
- 8.8
- Published
- 2026-11-11
- OWASP
- A03 Injection
- Orthogonal defect classification
- Interface
- Code defect classification
- Missing Check
- Category
- Input Validation and Sanitization
- Subcategory
- Command Injection
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- Heym
Solution
Upgrade Heym to version 0.0.71 or later.
Vulnerable code sample
import os
import tempfile
import subprocess
def run_playwright_node(playwrightCode: str):
# VULNERABLE: executes arbitrary code string without validation
with tempfile.NamedTemporaryFile('w', suffix='.py', delete=False) as tmp:
tmp.write(playwrightCode)
script_path = tmp.name
subprocess.Popen([os.sys.executable, script_path])Patched code sample
import os
import tempfile
import subprocess
import ast
def run_playwright_node(playwrightCode: str):
# FIX: validate AST to allow only expression statements
tree = ast.parse(playwrightCode, mode='exec')
for node in ast.walk(tree):
if not isinstance(node, (ast.Module, ast.Expr, ast.Call, ast.Name, ast.Load, ast.Constant)):
raise ValueError("Disallowed construct in playwrightCode")
with tempfile.NamedTemporaryFile('w', suffix='.py', delete=False) as tmp:
tmp.write(playwrightCode)
script_path = tmp.name
subprocess.Popen([os.sys.executable, script_path])Published fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- Merge commit from fork (heymrun/heym)
backend/app/config.py,backend/app/services/playwright_code_generator.py,backend/app/services/playwright_code_generator.py · _generate_step_lines,backend/app/services/workflow_dsl_prompt.py,backend/app/services/workflow_executor.py,backend/app/services/workflow_executor.py · WorkflowExecutor._execute_playwright_node
Cite this entry
@misc{vaitp:cve202667544,
title = {{Unauthenticated RCE via arbitrary Python in Playwright node (pre-0.0.71).}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-67544},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-67544/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
