NULL pointer dereference in Cpp-httplib - CVE-2026-46527
Published: May 16, 2026
Cpp-httplib
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to undefined behavior from calling front() on an empty std::vector in get_client_ip() when handling HTTP requests with a crafted X-Forwarded-For header under trusted-proxy configuration. A remote attacker can send a specially crafted request to cause a denial of service.
Only deployments that configure a non-empty trusted-proxy list are vulnerable.