{"id":"CVE-2025-67724","published":"2025-12-12T05:36:59Z","modified":"2025-12-18T18:53:38Z","title":"Tornado vulnerable to Header Injection and XSS via reason argument","vendor":"tornadoweb","product":"tornado","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00257,"percentile":0.17734,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-644","name":"Improper Neutralization of HTTP Headers for Scripting Syntax"}],"references":[{"url":"https://github.com/tornadoweb/tornado/security/advisories/GHSA-pr2v-jx2c-wg9f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tornadoweb/tornado/commit/9c163aebeaad9e6e7d28bac1f33580eb00b0e421","tags":["x_refsource_MISC"]},{"url":"https://github.com/tornadoweb/tornado/releases/tag/v6.5.3","tags":["x_refsource_MISC"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":3.55},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"tornadoweb","affectedVersions":[{"vendor":"tornadoweb","product":"tornado","versions":["< 6.5.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-18T18:53:21.062311Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tornado","vulnerableRanges":["<6.5.3"],"patched":["6.5.3"],"from":["GHSA-pr2v-jx2c-wg9f","PYSEC-2025-265"],"provenance":"source"}],"summary":{"text":"The Tornado Python web framework and asynchronous networking library, in versions 6.5.2 and below, passes the reason phrase argument (used by RequestHandler.set_status and tornado.web.HTTPError) into HTTP headers and the default error page HTML without escaping it. An attacker who can supply untrusted data to that argument can inject headers or script into responses, but only if the application passes unvalidated input into it and the victim interacts with the page, such as by following a link.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:17Z"},"euvd":{"id":"EUVD-2025-203032","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-28370","published":"2023-05-25","fixed":"6.3.2","kev":false},{"cve":"CVE-2024-52804","published":"2024-11-22","fixed":"6.4.2","kev":false},{"cve":"CVE-2025-47287","published":"2025-05-15","fixed":"6.5","kev":false,"link":{"from":"CVE-2025-47287","to":"CVE-2025-67724","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:tornado","fromFixed":"6.5","toFixed":"6.5.3","daysApart":211},{"kind":"same-code","provenance":"machine","files":["tornado/web.py"],"commits":["https://github.com/tornadoweb/tornado/commit/b39b892bf78fe8fea01dd45199aa88307e7162f3","https://github.com/tornadoweb/tornado/commit/9c163aebeaad9e6e7d28bac1f33580eb00b0e421"],"basis":"shared file"}]}},{"cve":"CVE-2025-67724","published":"2025-12-12","fixed":"6.5.3","kev":false},{"cve":"CVE-2025-67725","published":"2025-12-12","fixed":"6.5.3","kev":false},{"cve":"CVE-2025-67726","published":"2025-12-12","fixed":"6.5.3","kev":false},{"cve":"CVE-2026-31958","published":"2026-03-11","fixed":"6.5.5","kev":false}],"package":"PyPI:tornado"}}