What’s Vulnerable › Vulnerabilities

CVE-2026-49854: Tornado: Out-of-bounds memory access in C extension

Description

Tornado is a Python web framework and asynchronous networking library. Prior to 6.5.6, the optional native extension tornado.speedups implemented websocket_mask without validating that the mask argument is exactly four bytes, allowing the C function to read up to three bytes beyond the provided buffer when reached through Tornado XSRF token decoding with the native extension active. This issue is fixed in version 6.5.6.

Affected products

How to fix

Upgrade to a fixed version: Pypi Tornado 6.5.6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-49854 or the next vulnerability affects your stack