CVE-2026-119716 wbond · pybars3
9.8 Critical
AI summary
pybars3 through 0.9.7 and pybars4 through 0.9.13 contain a code injection flaw in pybars/_compiler.py: anyone able to supply Handlebars templates can execute Python code in the application process via crafted bracketed path segments. Critical (CVSS 9.8), especially where untrusted users can provide templates.
Official 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.
- Published
- 2026-10-30 16:17 UTC
- Modified
- 2026-11-06 17:17 UTC
- CVSS
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS
- 0.80% (percentile 53)
- ENISA EUVD
- EUVD-2026-114121
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: total
- CWE
- CWE-94
CVSS vector
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Scope
- unchanged
- Confidentiality
- high
- Integrity
- high
- Availability
- high
References
- NVD · CVE.org
- github.com
https://github.com/up9inc/pybars4 - github.com
https://github.com/up9inc/pybars4/blob/0.9.13/pybars/_compiler.py#L153-L154 - github.com
https://github.com/vladko312/advisories/blob/702e98db9642ece70d9e2150076d8014ffec2db3/pybars3.md - github.com
https://github.com/wbond/pybars3 - github.com
https://github.com/wbond/pybars3/blob/0.9.7/pybars/_compiler.py#L159-L160 - github.com
https://github.com/wbond/pybars3/issues/88 - www.vulncheck.com
https://www.vulncheck.com/advisories/pybars3-through-0.9.7-code-injection-via-bracketed-path-segments