Medium severity6.1NVD Advisory· Published Oct 23, 2017· Updated May 13, 2026
CVE-2016-10516
CVE-2016-10516
Description
Cross-site scripting (XSS) vulnerability in the render_full function in debug/tbtools.py in the debugger in Pallets Werkzeug before 0.11.11 (as used in Pallets Flask and other products) allows remote attackers to inject arbitrary web script or HTML via a field that contains an exception message.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
WerkzeugPyPI | < 0.11.11 | 0.11.11 |
Affected products
1Patches
12 files changed · +2 −1
CHANGES+1 −0 modified@@ -13,6 +13,7 @@ Bugfix release, unreleased. see issue ``#995``. - Fix a bug in multidicts when passing empty lists as values, see issue ``#979``. +- Fix a security issue that allows XSS on the Werkzeug debugger. See ``#1001``. Version 0.11.10 ---------------
werkzeug/debug/tbtools.py+1 −1 modified@@ -358,7 +358,7 @@ def render_full(self, evalex=False, secret=None, 'exception': exc, 'exception_type': escape(self.exception_type), 'summary': self.render_summary(include_title=False), - 'plaintext': self.plaintext, + 'plaintext': escape(self.plaintext), 'plaintext_cs': re.sub('-{2,}', '-', self.plaintext), 'traceback_id': self.id, 'secret': secret
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
8- github.com/advisories/GHSA-h2fp-xgx6-xh6fghsaADVISORY
- github.com/pallets/werkzeug/pull/1001nvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2016-10516ghsaADVISORY
- blog.neargle.com/2016/09/21/flask-src-review-get-a-xss-from-debugerghsaWEB
- blog.neargle.com/2016/09/21/flask-src-review-get-a-xss-from-debuger/nvdIssue Tracking
- github.com/pallets/werkzeug/commit/1034edc7f901dd645ec6e462754111b39002bd65ghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2017-43.yamlghsaWEB
- lists.debian.org/debian-lts-announce/2017/11/msg00037.htmlnvdWEB
News mentions
0No linked articles in our index yet.