CVE-2026-119716 PUBLISHED

pybars3 through 0.9.7 Code Injection via Bracketed Path Segments

Assigner: VulnCheck
Reserved: 30.10.2026 Published: 30.10.2026 Updated: 30.10.2026

pybars3 through 0.9.7 contains 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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 9.2

Product Status

Vendor wbond
Product pybars3
Versions Default: unaffected
  • affected from 0 to 0.9.7 (incl.)

Credits

  • Vladislav Korchagin finder

References

Problem Types

  • Improper Control of Generation of Code ('Code Injection') CWE