Moderate: python-jinja2 security update

python3-jinja2 Updated 02 Oct 2025

Summary

09/11/2021
N/A
Yes i
Unrated
Not published

ALSA-2021:4161: Moderate: python-jinja2 security update. Affects python3-jinja2 versions < 2.10.1-3.el8. Fixed in 2.10.1-3.el8. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The python-jinja2 package contains Jinja2, a template engine written in pure Python. Jinja2 provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

Vulnerability Detail

The python-jinja2 package is affected by a Regular Expression Denial of Service (ReDoS) vulnerability, identified as CVE-2020-28493. This vulnerability is caused by a sub-pattern in the code, which can be exploited to cause a denial of service attack. An attacker can send a specially crafted input that triggers excessive backtracking in the regular expression engine, leading to high CPU usage and potentially causing the application to become unresponsive. The impact of this vulnerability can range from service degradation to a complete denial of service.

How To Fix

Minimum fixed version

2.10.1-3.el8

This is the first release that contains the fix.

sudo dnf update python3-jinja2

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

Workaround

There is no known workaround for this vulnerability. It is necessary to apply the security update to mitigate the risk.

Conclusion

The python-jinja2 package is affected by a ReDoS vulnerability, which can be exploited to cause a denial of service. To mitigate this risk, it is recommended to update the package to the latest version. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for python3-jinja2 →

Share this vulnerability

FAQ

Python-jinja2 is a template engine written in pure Python. It provides a non-XML syntax inspired by Django and supports inline expressions and a sandboxed environment.

A Regular Expression Denial of Service (ReDoS) vulnerability occurs when a regular expression pattern can be exploited to cause excessive backtracking in the regular expression engine. This can lead to high CPU usage and potentially a denial of service.

The impact of this vulnerability can range from service degradation to a complete denial of service. An attacker can send a specially crafted input that triggers excessive backtracking, causing the application to become unresponsive.

To fix this vulnerability, update the python-jinja2 package to version 2.10.1-3.el8 or later. This update includes a patch that addresses the ReDoS vulnerability.

No, there is no known workaround for this vulnerability. It is necessary to apply the security update to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for python3-jinja2.

How To Fix

Minimum fixed version

2.10.1-3.el8

This is the first release that contains the fix.

sudo dnf update python3-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