Log Injection Vulnerability in corydolphin/flask-cors
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| corydolphin | corydolphin/flask-cors | up to latest | — | No fix listed | CNA |
| — | flask-cors (PyPI) | before 4.0.1 | 4.0.1 | Patch available | GHSA-84pr-m4jr-85g5 |
- corydolphin/flask-cors Vendorcorydolphin Affected up to latest Fixed in — No fix listed CNA
- flask-cors (PyPI) Vendor— Affected before 4.0.1 Fixed in 4.0.1 Patch available GHSA-84pr-m4jr-85g5
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:corydolphin:flask-cors:4.0.0:*:*:*:*:*:*:* | 4.0.0 | Vulnerable | corydolphin |
- cpe:2.3:a:corydolphin:flask-cors:4.0.0:*:*:*:*:*:*:* Versions 4.0.0 Vulnerable ·corydolphin
Remediation
- Fix · GHSA-84pr-m4jr-85g5 flask-cors (PyPI) Fixed in 4.0.1 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-1681
- 2026-10-03 Alias added: GHSA-84pr-m4jr-85g5
References
Other 4
- https://github.com/corydolphin/flask-cors
- https://github.com/corydolphin/flask-cors/blob/40acc8092332dfed4bb54d7a4f89a6d479466de7/flask_cors/extension.py#L194
- https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-271.yaml
- https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html
More corydolphin Flask-cors vulnerabilities
- TI-2024-05769 Improper Access Control in corydolphin/flask-cors CVSS 3.1HIGH 7.5
Sources
- CVE-2024-1681 · CVE Program
- CVE-2024-1681 · NVD
- FIRST EPSS
- GHSA-84pr-m4jr-85g5 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-1681 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences