NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2024-1681: flask-cors vulnerable to log injection when the log level is set to debug

mediumCVSS 3.0 5.3GHSA-84pr-m4jr-85g5

corydolphin/flask-cors is vulnerable to log injection when the log level is set to debug. An attacker can inject fake log entries into the log file by sending a specially crafted GET request containing a CRLF sequence in the request path. This vulnerability allows attackers to corrupt log files, potentially covering tracks of other attacks, confusing log post-processing tools, and forging log entries.

Published Apr 19, 2024 · Updated Jun 5, 2026

Affected packages

flask-cors

Ecosystem
PyPI
Affected
<= 4.0.0
Fixed in
4.0.1
Check
pip show flask-cors

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

corydolphin/flask-cors is vulnerable to log injection when the log level is set to debug. An attacker can inject fake log entries into the log file by sending a specially crafted GET request containing a CRLF sequence in the request path. This vulnerability allows attackers to corrupt log files, potentially covering tracks of other attacks, confusing log post-processing tools, and forging log entries. The issue is due to improper output neutralization for logs.

Credited to bayandin.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries