CVE-2026-119716
criticalpybars3 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 c…
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://github.com/up9inc/pybars4 disclosure@vulncheck.com
- https://github.com/up9inc/pybars4/blob/0.9.13/pybars/_compiler.py#L153-L154 disclosure@vulncheck.com
- https://github.com/vladko312/advisories/blob/702e98db9642ece70d9e2150076d8014ffec2db3/pyba... disclosure@vulncheck.com
- https://github.com/wbond/pybars3 disclosure@vulncheck.com
- https://github.com/wbond/pybars3/blob/0.9.7/pybars/_compiler.py#L159-L160 disclosure@vulncheck.com
- https://github.com/wbond/pybars3/issues/88 disclosure@vulncheck.com
- https://www.vulncheck.com/advisories/pybars3-through-0.9.7-code-injection-via-bracketed-pa... disclosure@vulncheck.com

