CVE-2025-67724
Tornado vulnerable to Header Injection and XSS via reason argument
Reported by github_m · Published December 12, 2025
tornado is fixed in 6.5.3 (PyPI)
Tornado is a Python web framework and asynchronous networking library. In versions 6.5.2 and below, the supplied reason phrase is used unescaped in HTTP headers (where it could be used for header injection) or in HTML in the default error page (where it could be used for XSS) and can be exploited by passing untrusted or malicious data into the reason argument. Used by both RequestHandler.set_status and tornado.web.HTTPError, the argument is designed to allow applications to pass custom "reason" phrases (the "Not Found" in HTTP/1.1 404 Not Found) to the HTTP status line (mainly for non-standard status codes). This issue is fixed in version 6.5.3.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| tornado | PyPI | 6.5.3 |
| python3.13-tornado-doc | Amazon Linux | 6.4.2-1.amzn2023.0.2 |
| python3.13-tornado | Amazon Linux | 6.4.2-1.amzn2023.0.2 |
| python-tornado | Amazon Linux | 4.2.1-3.amzn2.0.3 |
| python3-tornado | Amazon Linux | 6.1.0-2.amzn2023.0.6 |
| tornado | tornadoweb | 6.5.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| tornadoweb | tornado | < 6.5.3 |
| amazon:2023 | python3.13-tornado-doc | 0 |
| amazon:2023 | python3.13-tornado | 0 |
| amazon:2 | python-tornado | 0 |
| amazon:2023 | python3-tornado | 0 |
| PyPI | tornado | 0 |
| amazon:2 | python3-tornado | 0 |
| amazon:2 | python-tornado-doc | 0 |
| tornadoweb | tornado | 0 |
| amazon:2023 | python-tornado-doc | 0 |
| alpine | py3-tornado | 0 |
| amazon:2 | python3-tornado-doc | 0 |
Timeline
- Dec 12, 2025 EPSS Score (30 in total, the first dated here)
- Dec 12, 2025 CVE Published
- Dec 18, 2025 CVE Updated
- Jan 9, 2026 PoC Published (5 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Mar 31, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-67724
vulnetix vdb fixes CVE-2025-67724
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-67724/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/tornadoweb/tornado/security/advisories/GHSA-pr2v-jx2c-wg9f x_refsource_CONFIRM
- https://github.com/tornadoweb/tornado/commit/9c163aebeaad9e6e7d28bac1f33580eb00b0e421 x_refsource_MISC
- https://github.com/tornadoweb/tornado/releases/tag/v6.5.3 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-67724 advisory
- https://github.com/advisories/GHSA-pr2v-jx2c-wg9f advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/tornado/PYSEC-2025-265.yaml advisory