What’s Vulnerable › Vulnerabilities
CVE-2025-0825: CRLF injection in Cpp-httplib
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-02-04 · updated 2026-06-17
- Weakness: CWE-113
Description
cpp-httplib version v0.17.3 through v0.18.3 fails to filter CRLF characters ("\r\n") when those are prefixed with a null byte. This enables attackers to exploit CRLF injection that could further lead to HTTP Response Splitting, XSS, and more.
Affected products
- yhirose cpp-httplib: from 0.17.3 before 0.18.4 — fixed in 0.18.4
How to fix
Upgrade to a fixed version: yhirose cpp-httplib 0.18.4. Check the vendor advisory for mitigations.
References
- https://advisory.checkmarx.net/advisory/CVE-2025-0825/
- https://github.com/yhirose/cpp-httplib/commit/9c36aae4b73e2b6e493f4133e4173103c9266289
Get alerted when CVE-2025-0825 or the next vulnerability affects your stack