CVE-2026-119717 PUBLISHED

pybars4 through 0.9.13 Code Injection via Bracketed Path Segments

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

pybars4 through 0.9.13 contains a code injection vulnerability in pybars/_compiler.py that allows attackers to execute Python code via unescaped bracketed path segments in Handlebars templates. Attackers can supply a template with a crafted segment in a helper or block argument to break out of the generated resolve() string literal and execute code 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 up9inc
Product pybars4
Versions Default: unaffected
  • affected from 0 to 0.9.13 (incl.)

Credits

  • Vladislav Korchagin finder

References

Problem Types

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