CVE-2026-119716
pybars3 through 0.9.7 contains a code injection vulnerability in …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/vladko312/advisories/blob/702e98db9642ece70d9e2150076d8014ffec2db3/pybars3.md
- github.com/wbond/pybars3
- github.com/wbond/pybars3/blob/0.9.7/pybars/_compiler.py#L159-L160
- github.com/wbond/pybars3/issues/88
- www.vulncheck.com/advisories/pybars3-through-0.9.7-code-injection-via-bracketed-path-segme
- github.com/up9inc/pybars4
- github.com/up9inc/pybars4/blob/0.9.13/pybars/_compiler.py#L153-L154
- nvd.nist.gov/vuln/detail/CVE-2026-119716
- cve.org/CVERecord?id=CVE-2026-119716
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.