Critical Security Update for python-jinja2: CVE-2025-27516

python-jinja2 Updated 02 Oct 2025

Summary

14/05/2025
N/A
Yes i
High
7.3

RHSA-2025:7476: Red Hat Security Advisory: python-jinja2 security update. Affects python-jinja2 versions < 0:3.1.6-1.el10_0. Fixed in 0:3.1.6-1.el10_0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

python-jinja2 is a popular templating engine for Python, widely used for rendering dynamic web pages. It allows developers to create HTML templates that can be populated with data, making it a crucial component in web development. The package is known for its flexibility and ease of use, but it has recently been identified as vulnerable to a security issue that could potentially compromise applications relying on it.

Vulnerability Detail

The vulnerability, identified as CVE-2025-27516, originates from a flaw in the python-jinja2 package that allows for remote code execution under certain conditions. This could lead to unauthorized access to sensitive data, manipulation of application behavior, or even complete system compromise. The vulnerability has a CVSS score of 7.3, indicating a high severity level, and it affects versions prior to 3.1.6-1.el10_0.

How To Fix

Minimum fixed version

0:3.1.6-1.el10_0

This is the first release that contains the fix.

sudo dnf update python-jinja2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider limiting the use of the vulnerable features of python-jinja2 until the package can be updated. This may involve reviewing your application code to avoid using any potentially unsafe template rendering methods.

Conclusion

In summary, the python-jinja2 package has a critical vulnerability (CVE-2025-27516) that requires immediate attention. Users should update to the patched version to mitigate risks associated with this vulnerability. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for python-jinja2 →

Share this vulnerability

FAQ

CVE-2025-27516 is a security vulnerability in the python-jinja2 package that allows for remote code execution, potentially compromising applications that utilize this templating engine.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for CVE-2025-27516 is 7.3, indicating a high severity level.

If immediate updates are not possible, review your application code to limit the use of vulnerable features and consider implementing additional security measures to mitigate risks.

Related vulnerabilities

Recent vulnerabilities recorded for python-jinja2.

How To Fix

Minimum fixed version

0:3.1.6-1.el10_0

This is the first release that contains the fix.

sudo dnf update python-jinja2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback