Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2025-27516

8.8 · HIGH
Published Mar 5, 2025 palletsprojects CWE-1336 EPSS 0.50% (41th pctl)

Overview

CVE-2025-27516 is a high-severity vulnerability affecting palletsprojects jinja. It was published on March 5, 2025 and has a CVSS 3.1 base score of 8.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6.

Remediation

Check the references section for vendor advisories and patches from palletsprojects. Update jinja to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
palletsprojects jinja >= 0, < 3.1.6 Affected

Frequently Asked Questions

What is CVE-2025-27516?

CVE-2025-27516 is a high-severity vulnerability affecting palletsprojects jinja. It was published on March 5, 2025 and has a CVSS 3.1 base score of 8.8 (HIGH).

How severe is CVE-2025-27516?

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-27516?

Check the references section for vendor advisories and patches from palletsprojects. Update jinja to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-27516?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-27516 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.