CVE-2026-35536: Tornado Tornado Has Cookie Attribute Injection Vulnerability
HIGHCVE-2026-35536 is a HIGH (CVSS 7.2) tornado has cookie attribute injection vulnerability (CWE-159: Improper Handling of Invalid Use of Special Elements) affecting Tornado libraries in the PyPI ecosystem. The issue involves tornado has cookie attribute injection via .requesthandler.set_cookie. Remediation is available by upgrading affected packages to version 6.5.5.
CVE-2026-35536 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-35536
To remediate this vulnerability, upgrade all affected Tornado dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install tornado>=6.5.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show tornado
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-35536, inspect your installed packages using pip:
pip show tornado
Analyze the terminal output to locate any version of Tornado in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.5.5), your application is affected.
Note: The pip show tornado command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-159: Improper Handling of Invalid Use of Special Elements, where the product does not properly filter, remove, quote, or otherwise manage the invalid use of special elements in user-controlled input, which could cause adverse effect on its behavior and integrity. In Tornado, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-35536 Affected Tornado Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tornado
|
PyPI |
< 6.5.5
|
6.5.5
|
References
Frequently Asked Questions
What is CVE-2026-35536?
Which Tornado versions are affected?
What version fixes CVE-2026-35536?
Is tornado affected?
What is the CVSS score of CVE-2026-35536?
What CWE is associated with CVE-2026-35536?
How can I check PyPI dependencies for CVE-2026-35536?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fqwm-6jpj-5wxc",
"modified" : "2026-04-04T06:45:00Z",
"published" : "2026-04-03T06:31:31Z",
"aliases" : [ "CVE-2026-35536" ],
"summary" : "Tornado has cookie attribute injection via .RequestHandler.set_cookie",
"details" : "In Tornado before 6.5.5, cookie attribute injection could occur because the domain, path, and samesite arguments to `.RequestHandler.set_cookie` were not checked for crafted characters.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "tornado"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.5.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tornadoweb/tornado/security/advisories/GHSA-78cv-mqj4-43f7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-35536"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tornadoweb/tornado"
}, {
"type" : "WEB",
"url" : "https://github.com/tornadoweb/tornado/releases/tag/v6.5.5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-159" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-04T06:45:00Z",
"nvd_published_at" : "2026-04-03T04:16:53Z"
}
}