CVE-2026-49854
Published:June 13, 2026
Updated:June 18, 2026
Summary Tornado's optional native extension "tornado.speedups" implements "websocket_mask" without validating that the "mask" argument is exactly four bytes long. The C function reads four bytes from "mask" unconditionally, even when Python passes a shorter byte string. This can read beyond the provided buffer, exposing up to 3 bytes of uninitialized memory. The behavior is reachable from Tornado's XSRF token decoder when "xsrf_cookies=True" and the native extension is active. Mitigations This bug is fixed in Tornado 6.5.6. Prior to upgrading to this version, setting the environment variable TORNADO_EXTENSION=0 will disable the vulnerable code (at the expense of reducing websocket performance).
Affected Packages
tornado (CONDA):
Affected version(s) >=2.3 <6.5.6Fix Suggestion:
Update to version 6.5.6tornado (CONDA):
Affected version(s) >=2.3 <6.5.6Fix Suggestion:
Update to version 6.5.6tornado (PYTHON):
Affected version(s) >=0.2 <6.5.6Fix Suggestion:
Update to version 6.5.6Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
3.7
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Buffer Over-read
EPSS
Base Score:
0.03