Description
pybars4 through 0.9.13 contains a code injection vulnerability in pybars/_compiler.py that allows attackers to execute Python code via unescaped bracketed path segments in Handlebars templates. Attackers can supply a template with a crafted segment in a helper or block argument to break out of the generated resolve() string literal and execute code in the application process.
Published: 2026-10-30
Score: 9.2 Critical
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability resides in pybars4’s compiler, where bracketed path segments in a Handlebars template are not fully escaped. A crafted template can terminate a generated string literal and inject arbitrary Python code, allowing an attacker to execute code within the application’s process. The flaw is a classic code‑injection issue, categorized as CWE‑94. The impact is a full compromise of confidentiality, integrity, and availability of the host, as the attacker can run any Python code the application process can execute.

Affected Systems

The affected vendor is Up9 Inc., with the pybars4 product impacted in all releases up to and including version 0.9.13. Applications that depend on these versions and render user‑supplied Handlebars templates are vulnerable to the exploitation described.

Risk and Exploitability

The CVSS score of 9.2 indicates a high severity. EPSS is not available, so the current data does not quantify exploitation probability, but the technical description suggests that a malicious template is sufficient to launch the attack. The vulnerability is not listed in the CISA KEV catalog, though the potential for remote code execution makes it a top‑priority risk. The likely attack vector is a remote injection of a crafted template through an API or web form that feeds data to pybars4 for rendering.

Generated by OpenCVE AI on October 30, 2026 at 16:31 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pybars4 to a version newer than 0.9.13, preferably the latest release; if no newer release exists, migrate to an alternative templating engine that properly sanitizes data.
  • Ensure that any Handlebars templates used by the application are either trusted or strictly validated; reject or sanitize templates that contain bracketed path segments prior to rendering.
  • Reconfigure the application to render templates only for internal, non‑trusted content, or disable dynamic template loading for user‑supplied input as a temporary workaround.

Generated by OpenCVE AI on October 30, 2026 at 16:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description pybars4 through 0.9.13 contains a code injection vulnerability in pybars/_compiler.py that allows attackers to execute Python code via unescaped bracketed path segments in Handlebars templates. Attackers can supply a template with a crafted segment in a helper or block argument to break out of the generated resolve() string literal and execute code in the application process.
Title pybars4 through 0.9.13 Code Injection via Bracketed Path Segments
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-30T15:16:14.963Z

Reserved: 2026-10-30T14:49:27.542Z

Link: CVE-2026-119717

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T16:17:55.170

Modified: 2026-10-30T16:17:55.170

Link: CVE-2026-119717

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T16:45:15Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')