CVE-2016-10745 · mitre
CVE-2016-10745
In Pallets Jinja before 2.8.1, str.format allows a sandbox escape.
Published 2019-04-08, last changed 2026-06-17. Weakness: CWE-134.
How to fix
Upgrade to a fixed version: jinja2 2.8.1 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in pallets/jinja by 9b53045c34, 209fd39b27. Functions changed by the fix: as_const, _MagicFormatMapping, __init__, __getitem__, __iter__, __len__, inspect_format_method, is_internal_attribute, SandboxedEnvironment, format_string, call, formatter_field_name_split. Regression tests: tests/test_security.py. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2019-04-08 | Published |
| 2019-04-08 | Package advisory PYSEC-2019-220 |
| 2019-04-10 | Package advisory GHSA-hj2j-77xm-mc5v |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 3.52% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-hj2j-77xm-mc5v | jinja2 (PyPI) | 2.8.1 |
| PYSEC-2019-220 | jinja2 (PyPI) | 2.8.1 |
Also known as: GHSA-hj2j-77xm-mc5v, PYSEC-2019-220
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2025-27516 | 2025-03-05 | 8.8 | Jinja sandbox breakout through attr filter selecting format method |
| CVE-2024-56326 | 2024-12-23 | 5.4 | Jinja has a sandbox breakout through indirect reference to format method |
| CVE-2024-56201 | 2024-12-23 | 8.8 | Jinja has a sandbox breakout through malicious filenames |
| CVE-2024-34064 | 2024-05-06 | 5.4 | Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter |
| CVE-2024-22195 | 2024-01-11 | 6.1 | Jinja vulnerable to Cross-Site Scripting (XSS) |
| CVE-2020-28493 | 2021-02-01 | 5.3 | Regular Expression Denial of Service (ReDoS) |
| CVE-2019-10906 | 2019-04-07 | 8.6 | same package: jinja2 (PyPI) |
| CVE-2014-1402 | 2014-05-19 | 4.4 | same package: jinja2 (PyPI) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-10745, or call /api/v1/vulnerabilities/CVE-2016-10745. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.