CVE-2024-1681Corydolphin Flask-cors
Medium 5.3 No auth needed
Follow: this CVE · Corydolphin · Corydolphin Flask-cors We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 48
- Auth required
- No
- Published
- Apr 19, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-117
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Flask-cors.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | flask-cors |
< 4.0.1 |
4.0.1 |
pip install "flask-cors>=4.0.1" |
| PyPI | flask-cors |
≤ 4.0.0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-84pr-m4jr-85g5, PYSEC-2024-271). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| corydolphin | flask-cors | 4.0.0 |
Official advisories
- python313-Flask-Cors-6.0.2-1.2 on GA media · SUSE · openSUSE-SU-2026:11990-1 · Oct 4, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- huntr.com Exploit Third Party Advisory
- lists.debian.org