9.8Kritisch
CVE-2026-119716pybars3 through 0.9.7 and pybars4 through 0.9.13 Code Injection via Bracketed Path Segments
Beschreibung
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.
Schwachstellentyp (CWE):
CWE-94
Daten: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Wiedergegeben wie in der Quelle, auf Englisch.
Betroffene Produkte und Versionen
Referenzen und Patches
- GitHub Issue #88 issue-tracking
- https://github.com/wbond/pybars3 product
- https://github.com/up9inc/pybars4 product
- https://github.com/vladko312/advisories/blob/702e98db9642ece70d9e2150076d8014ffec2db3/pybars3.md third-party-advisory
- https://github.com/wbond/pybars3/blob/0.9.7/pybars/_compiler.py#L159-L160 technical-description
- https://github.com/up9inc/pybars4/blob/0.9.13/pybars/_compiler.py#L153-L154 technical-description
- VulnCheck Advisory: pybars3 through 0.9.7 Code Injection via Bracketed Path Segments third-party-advisory