CVE-2025-0825 CRLF injection in Cpp-httplib

Medium 6.9 Published Updated

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.

Sources

Also known as DEBIAN-CVE-2025-0825, GHSA-65rj-829h-6g8x, OESA-2025-1116, OESA-2025-1117, OESA-2025-1118, OESA-2025-1119.

Is CVE-2025-0825 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free