CSRF Token Exposure in Python Tornado: CVE-2014-9720

python-tornado Updated 02 Oct 2025

Summary

24/01/2020
N/A
Yes i
Medium
6.5

CVE-2014-9720: Tornado before 3.2.2 sends arbitrary responses that contain a fixed CSRF token and may be sent with HTTP compression, which makes it easier for remote attackers to conduct a BREACH attack and determine this token via a s... Affects python-tornado versions < 3.2.2-1. Fixed in 3.2.2-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Python Tornado is a scalable, non-blocking web server and web application framework designed to handle thousands of simultaneous connections efficiently. It is widely used for building web applications that require long-lived network connections, such as WebSockets. However, prior to version 3.2.2, Tornado had a vulnerability that allowed attackers to exploit the fixed CSRF token sent in responses, potentially compromising user sessions.

Vulnerability Detail

The vulnerability identified as CVE-2014-9720 affects Tornado versions before 3.2.2. It arises from the server's behavior of sending arbitrary responses containing a fixed CSRF token. This token can be exploited in a BREACH attack, where an attacker can determine the value of the CSRF token through a series of crafted requests. The implications of this vulnerability are significant, as it could allow unauthorized actions to be performed on behalf of users, leading to session hijacking and data breaches.

How To Fix

Minimum fixed version

3.2.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-tornado

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading is not immediately possible, consider implementing additional security measures such as using a custom CSRF token for each session or request, and employing rate limiting to mitigate the risk of BREACH attacks.

Conclusion

CVE-2014-9720 is a significant vulnerability in Python Tornado that can lead to serious security risks if not addressed. Upgrading to version 3.2.2 or later is crucial to protect applications from potential attacks. Additionally, utilizing tools like Vulert can help monitor and alert for open-source vulnerabilities in your software.

See every vulnerability recorded for python-tornado →

Share this vulnerability

FAQ

CVE-2014-9720 is a vulnerability in Python Tornado that allows attackers to exploit a fixed CSRF token in responses, potentially leading to unauthorized actions.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which analyzes your manifest file for vulnerabilities.

The main consequence is the potential for session hijacking, where an attacker could perform actions on behalf of a user without their consent.

Yes, implementing additional security measures such as custom CSRF tokens and rate limiting can help mitigate the risk until an upgrade is possible.

The CVSS score for CVE-2014-9720 is 6.5, indicating a medium severity level.

Related vulnerabilities

Recent vulnerabilities recorded for python-tornado.

How To Fix

Minimum fixed version

3.2.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-tornado

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback