CVE-2026-119716 Details
Description
pybars3 through 0.9.7 and pybars4 through 0.9.13 contain a code injection vulnerability in pybars/_compiler.py that allows template authors to execute Python code via unescaped bracketed path segments. Attackers can supply Handlebars templates with crafted segments in helper or block arguments to break out of string literals and execute Python in the application process.
A code injection vulnerability has been identified in the Python template engines Pybars3 (through version 0.9.7) and Pybars4 (through version 0.9.13). The issue arises in the file '_compiler.py', where unescaped bracketed path segments can be used to execute arbitrary Python code. This vulnerability exploits the Handlebars template syntax, which is typically considered safe for user-generated content. However, in this case, attackers can craft templates that break out of string literals and execute code in the application process.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 30, 2026CISA-ADP
Assessed Nov 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vladko312/advisories/blob/702e98db9642ece70d9e2150076d8014ffec2db3/pybars3.md | CISA-ADP | AdvisoryExploitPartial Content |
| https://github.com/up9inc/pybars4 | [email protected] | |
| https://github.com/up9inc/pybars4/blob/0.9.13/pybars/_compiler.py#L153-L154 | [email protected] | |
| https://github.com/vladko312/advisories/blob/702e98db9642ece70d9e2150076d8014ffec2db3/pybars3.md | [email protected] | AdvisoryExploitPartial Content |
| https://github.com/wbond/pybars3 | [email protected] | Vendor |
| https://github.com/wbond/pybars3/blob/0.9.7/pybars/_compiler.py#L159-L160 | [email protected] | Source CodeVendor |
| https://github.com/wbond/pybars3/issues/88 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.vulncheck.com/advisories/pybars3-through-0.9.7-code-injection-via-bracketed-path-segments | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pybars3 | <= 0.9.7 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 6, 2026 | CVE Modified | CISA-ADP |
| Nov 2, 2026 | CVE Modified | [email protected] |
| Oct 30, 2026 | New CVE Received | [email protected] |
Volerion