KeygraphLabs · CVE MCP

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.

CVSS
8.6
high, from NVD
EPSS
3.62%
percentile 89.9%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-08Published
2019-04-08Package advisory PYSEC-2019-220
2019-04-10Package advisory GHSA-hj2j-77xm-mc5v
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 3.52%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-hj2j-77xm-mc5vjinja2 (PyPI)2.8.1
PYSEC-2019-220jinja2 (PyPI)2.8.1

Also known as: GHSA-hj2j-77xm-mc5v, PYSEC-2019-220

Related

CVEPublishedCVSSSummary
CVE-2025-275162025-03-058.8Jinja sandbox breakout through attr filter selecting format method
CVE-2024-563262024-12-235.4Jinja has a sandbox breakout through indirect reference to format method
CVE-2024-562012024-12-238.8Jinja has a sandbox breakout through malicious filenames
CVE-2024-340642024-05-065.4Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
CVE-2024-221952024-01-116.1Jinja vulnerable to Cross-Site Scripting (XSS)
CVE-2020-284932021-02-015.3Regular Expression Denial of Service (ReDoS)
CVE-2019-109062019-04-078.6same package: jinja2 (PyPI)
CVE-2014-14022014-05-194.4same 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.

NVD · CVE.org