CVE-2025-0825 CRLF injection in Cpp-httplib
Attackers can inject CRLF characters to cause HTTP response splitting and XSS in applications using the cpp-httplib library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-0825?
CVE-2025-0825 is a medium-severity vulnerability in yhirose:cpp-httplib, published on 4 Feb 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-113
Which versions are affected by CVE-2025-0825?
It affects 1 product.
Products include Yhirose Cpp-Httplib.
How do I fix CVE-2025-0825?
Apply the vendor's patch.
Is CVE-2025-0825 being exploited?
There is no known exploitation of CVE-2025-0825 in the wild and no public exploit code.
Other vulnerabilities in yhirose:cpp-httplib
- CVE-2025-66570 cpp-httplib Untrusted HTTP Header Handling: Internal Header Shadowing (REMOTE*/LOCAL*)
- CVE-2026-45372 cpp-httplib: HTTP header value percent-decoding in server-side `parse_header` enables CRLF injection
- CVE-2026-46527 Null dereference in cpp-httplib
- CVE-2026-32627 cpp-httplib has a Silent TLS Certificate Verification Bypass on HTTPS Redirect via Proxy
- CVE-2026-22776 cpp-httplib vulnerable to a denial of service (DOS) using a zip bomb
Sources
Also known as DEBIAN-CVE-2025-0825, GHSA-65rj-829h-6g8x, OESA-2025-1116, OESA-2025-1117, OESA-2025-1118, OESA-2025-1119.