VAITP Dataset

← Back to the dataset

CVE-2026-130753

Remote code execution via Playwright step‑mode injection in heym 0.0.142.

  • CVSS 8.7
  • CWE-94
  • Input Validation and Sanitization
  • Remote

heym before 0.0.142 contains a remote code execution vulnerability in the Playwright step-mode node where _resolve_expressions_in_code substitutes workflow values directly into generated Python source. Authenticated non-admin users can craft step field values that break out of string literals to execute arbitrary Python as root inside the backend container.

CVSS base score
8.7
Published
2026-11-18
OWASP
A03 Injection
Orthogonal defect classification
Interface
Code defect classification
Incorrect Interface
Category
Input Validation and Sanitization
Subcategory
Command Injection
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
Playwright
Fixed by upgrading
Yes

Solution

Upgrade heym to version 0.0.143 or later, which patches the remote code execution vulnerability.

Vulnerable code sample

import ast

def _resolve_expressions_in_code(template: str, values: dict) -> str:
    # VULNERABLE: directly injects user values into code string
    for key, val in values.items():
        template = template.replace(f"${{{key}}}", f"{val}")
    return template

def run_user_step(step_code: str, workflow_values: dict):
    code = _resolve_expressions_in_code(step_code, workflow_values)
    exec(code, {"__builtins__": {}})

# Example usage inside the backend (not part of the sample)
# step_code = "result = f'Hello {user_input}'"
# workflow_values = {"user_input": "world"}
# run_user_step(step_code, workflow_values)

Patched code sample

import ast
import shlex

def _resolve_expressions_in_code(template: str, values: dict) -> str:
    # FIX: safely injects values using literal representation
    for key, val in values.items():
        safe_val = shlex.quote(str(val))
        template = template.replace(f"${{{key}}}", safe_val)
    return template

def run_user_step(step_code: str, workflow_values: dict):
    code = _resolve_expressions_in_code(step_code, workflow_values)
    exec(code, {"__builtins__": {}})

# Example usage inside the backend (not part of the sample)
# step_code = "result = f'Hello {user_input}'"
# workflow_values = {"user_input": "world"}
# run_user_step(step_code, workflow_values)

Cite this entry

@misc{vaitp:cve2026130753,
  title        = {{Remote code execution via Playwright step‑mode injection in heym 0.0.142.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-130753},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-130753/}}
}

Download this entry as JSON Download the whole dataset

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 ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.