Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. tornado
  4. ›
  5. CVE-2025-67724

CVE-2025-67724: Tornado vulnerable to Header Injection and XSS via reason argument

July 20, 2026

The reason argument (used by both RequestHandler.set_status and tornado.web.HTTPError 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). Vulnerabilities exist in Tornado versions prior to 6.5.3 if untrusted data is passed as the reason argument.

References

  • github.com/advisories/GHSA-pr2v-jx2c-wg9f
  • github.com/pypa/advisory-database/tree/main/vulns/tornado/PYSEC-2025-265.yaml
  • github.com/tornadoweb/tornado/commit/9c163aebeaad9e6e7d28bac1f33580eb00b0e421
  • github.com/tornadoweb/tornado/releases/tag/v6.5.3
  • github.com/tornadoweb/tornado/security/advisories/GHSA-pr2v-jx2c-wg9f
  • nvd.nist.gov/vuln/detail/CVE-2025-67724

Code Behaviors & Features

Detect and mitigate CVE-2025-67724 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.5.3

Fixed versions

  • 6.5.3

Solution

Upgrade to version 6.5.3 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/tornado/CVE-2025-67724.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 21 Jul 2026 12:22:24 +0000.