CVE-2026-123535

Tornado before 6.6 Cookie Attribute Injection via set_cookie max_age

Published Nov 8, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
Tornado before 6.6 does not validate the max_age argument of RequestHandler.set_cookie (also called by set_signed_cookie, set_secure_cookie, and clear_cookie), allowing injection of additional Set-Cookie attributes. When an application passes attacker-influenced input as max_age, an attacker can embed attributes such as Domain, Path, or Secure to widen the cookie's scope to parent paths or other subdomains.

Analysis

AI-generated

Technical impact

Tornado versions before 6.6 do not validate the max_age argument of RequestHandler.set_cookie, which is also used by set_signed_cookie, set_secure_cookie, and clear_cookie. An attacker can craft a max_age value that injects additional Set‑Cookie attributes such as Domain, Path, or Secure. The injection expands the cookie’s scope to parent paths or other subdomains, thereby affecting the session cookie attributes controlled by the application.

Affected Systems

The vulnerability applies to all releases of the Tornado web framework prior to version 6.6. Any application that uses Tornado’s set_cookie, set_signed_cookie, set_secure_cookie, or clear_cookie methods with unsanitized, attacker‑controlled input for the max_age parameter is at risk.

Risk and Exploitability

The CVSS score is 2.3, indicating low severity. No EPSS score is reported and the vulnerability is not listed in CISA’s KEV catalog, so the likelihood of widespread exploitation is modest. The attack vector requires an attacker to control the max_age input supplied by the application, which is typically obtained through normal application logic.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Tornado 6.6 or later where set_cookie validates the max_age parameter.
  • If an upgrade is not immediately possible, enforce numeric validation on any value passed to set_cookie; reject values containing commas, semicolons, or other cookie attribute delimiters.
  • Override or patch Tornado’s set_cookie implementation in the application’s code to strip or reject any additional attributes supplied via the max_age parameter before the cookie is sent.

Generated by OpenCVE AI on November 8, 2026 at 03:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Tornado before 6.6 does not validate the max_age argument of RequestHandler.set_cookie (also called by set_signed_cookie, set_secure_cookie, and clear_cookie), allowing injection of additional Set-Cookie attributes. When an application passes attacker-influenced input as max_age, an attacker can embed attributes such as Domain, Path, or Secure to widen the cookie's scope to parent paths or other subdomains.
Title Tornado before 6.6 Cookie Attribute Injection via set_cookie max_age
First Time appeared Tornadoweb
Tornadoweb tornado
Weaknesses CWE-74
CPEs cpe:2.3:a:tornadoweb:tornado:*:*:*:*:*:*:*:*
Vendors & Products Tornadoweb
Tornadoweb tornado
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N'}

cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 12, 2026, 2:06 PM
Reserved
Nov 6, 2026, 12:48 AM
Status
Deferred
Published
Nov 8, 2026, 2:16 AM
Modified
Nov 12, 2026, 2:17 PM