Security Update for python-werkzeug - XSS Vulnerability

python-werkzeug Updated 02 Oct 2025

Summary

24/11/2017
N/A
Yes i
Unrated
Not published

DLA-1191-1: python-werkzeug - security update. Affects python-werkzeug versions < 0.8.3+dfsg-1+deb7u1. Fixed in 0.8.3+dfsg-1+deb7u1. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

python-werkzeug is a Python library that provides a set of utilities for building web applications. It is commonly used as a part of the Flask web framework. The library includes a debugger that allows developers to inspect and debug their applications. However, a security issue has been discovered in the Werkzeug debugger that allows remote attackers to inject arbitrary content via a field containing an exception message.

Vulnerability Detail

The vulnerability in the Werkzeug debugger allows for cross-site scripting (XSS) attacks. By injecting malicious content into the exception message field, an attacker can execute arbitrary code in the context of the user's browser. This can lead to various consequences, such as stealing sensitive information, session hijacking, or performing actions on behalf of the user.

How To Fix

Minimum fixed version

0.8.3+dfsg-1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-werkzeug

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 essential to apply the security update to ensure the proper mitigation of the XSS issue.

Conclusion

The python-werkzeug library is vulnerable to a cross-site scripting (XSS) attack in the Werkzeug debugger. To mitigate this vulnerability, it is crucial to upgrade to the latest version of the python-werkzeug package. Applying the security update will ensure the proper protection of your web applications. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for python-werkzeug →

Share this vulnerability

FAQ

python-werkzeug is a Python library that provides utilities for building web applications. It is commonly used with the Flask web framework.

The vulnerability allows remote attackers to inject arbitrary content into the Werkzeug debugger, potentially leading to XSS attacks and various security risks.

To fix this vulnerability, you need to upgrade the python-werkzeug package to version 0.8.3+dfsg-1+deb7u1 or later.

No, there is no known workaround for this vulnerability. Applying the security update is the recommended solution.

You can find more information about Debian LTS security advisories, including how to apply updates and frequently asked questions, on the Debian LTS wiki.

Related vulnerabilities

Recent vulnerabilities recorded for python-werkzeug.

How To Fix

Minimum fixed version

0.8.3+dfsg-1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-werkzeug

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