CVE-2026-119716
9.8 CRITICALpublic exploit availablePublished 2026-10-30 · Updated 2026-11-02
AI risk analysis
- Summary
- pybars3 and pybars4 template engines allow untrusted template authors to execute arbitrary Python code by injecting unescaped bracketed path segments in helper or block arguments, bypassing string literal escaping in the template compiler.
- Exploitability
- Exploitation requires the attacker to control template content (e.g., via user-supplied templates) and no authentication is needed; it is straightforward for an attacker with template injection capability.
- Blast radius
- Successful exploitation grants full remote code execution in the application process, enabling complete compromise of confidentiality, integrity, and availability.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to pybars3 0.9.8 or later, or pybars4 0.9.14 or later, which patch the unescaped bracketed path segment vulnerability in pybars/_compiler.py.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Public exploit & PoC references
- https://github.com/up9inc/pybars4
- https://github.com/up9inc/pybars4/blob/0.9.13/pybars/_compiler.py#L153-L154
- https://github.com/vladko312/advisories/blob/702e98db9642ece70d9e2150076d8014ffec2db3/pybars3.md
- https://github.com/wbond/pybars3
- https://github.com/wbond/pybars3/blob/0.9.7/pybars/_compiler.py#L159-L160
- https://github.com/wbond/pybars3/issues/88
All references
- https://github.com/up9inc/pybars4
- https://github.com/up9inc/pybars4/blob/0.9.13/pybars/_compiler.py#L153-L154
- https://github.com/vladko312/advisories/blob/702e98db9642ece70d9e2150076d8014ffec2db3/pybars3.md
- https://github.com/wbond/pybars3
- https://github.com/wbond/pybars3/blob/0.9.7/pybars/_compiler.py#L159-L160
- https://github.com/wbond/pybars3/issues/88
- https://www.vulncheck.com/advisories/pybars3-through-0.9.7-code-injection-via-bracketed-path-segments
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-79310PoC
- CRITICALCVE-2026-106446PoC
- CRITICALCVE-2026-107328
- CRITICALCVE-2026-108598PoC
- HIGHCVE-2026-113776PoC
- CRITICALCVE-2026-120338PoC
- HIGHCVE-2026-82531PoC
- HIGHCVE-2026-96795PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.