Skip to main content
← All vulnerabilities
CVE-2026-119716EUVD-2026-114121GHSA-XVX4-89Q3-MCHG

pybars3 through 0.9.7 Code Injection via Bracketed Path Segments

Affects pybars3 up to and including 0.9.7 when templates use the [...] segment literal syntax. No fix is provided, and CVSS rates it 9.2 critical.

Published
Last modified
published
Not listed in CISA KEV
Unclear
None on Exploit-DB, Metasploit or GitHub
On X
View the cve.now post

Summary

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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. Posted on X by cve.now

Affected versions

  • wbond pybars3

    through 0.9.7

References 5

GitHub · wbond/pybars3

GitHub · vladko312/advisories

vulncheck.com

FAQ

Questions about CVE-2026-119716

What does this mean?

The [...] bracketed path syntax does not escape certain special characters before they are inserted into generated code. This lets a template string run arbitrary code in the context of the Python application.Source: github.com

Am I affected, and how do I check?

pybars3 through version 0.9.7 is affected. To check an installed version, run pip show pybars3 or pip freeze. The issue applies to templates that use the [...] segment literal syntax.Source: github.com

What should I do about it?

The checked sources list no fixed version, so there is no upgrade target yet. Check the project for a newer release before relying on an update.Source: github.com

Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

What if there's no patch?

The vendor states that no fix is provided for pybars3. The only workaround in the sources is to use a WAF or filtering to block code execution payloads.Source: github.com