Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
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.6
Fix Suggestion:
Update to version 6.5.6
tornado (CONDA):
Affected version(s) >=2.3 <6.5.6
Fix Suggestion:
Update to version 6.5.6
tornado (PYTHON):
Affected version(s) >=0.2 <6.5.6
Fix Suggestion:
Update to version 6.5.6
Do you need more information?
Contact Us
CVSS 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