pybars3 and pybars4 code execution via bracketed template paths
wbond pybars3 · up9inc pybars4
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| wbond pybars3 |
| No fix yet |
| up9inc pybars4 |
| No fix yet |
Original description
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.
From the CVE record · VulnCheck