CVE-2025-45286 Reflected XSS in go-httpbin due to unrestricted client control over Content-Type
Attackers can execute arbitrary web scripts or HTML in httpbin via a crafted payload, potentially compromising user sessions.
- 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-45286?
CVE-2025-45286 is a medium-severity cross-site scripting vulnerability in n/a, published on 2 Jan 2026. 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
A cross-site scripting (XSS) vulnerability in mccutchen httpbin v2.17.1 allows attackers to execute arbitrary web scripts or HTML via a crafted payload.
Weakness: CWE-80
Which versions are affected by CVE-2025-45286?
6 open source packages ship an affected version, including github.com/mccutchen/go-httpbin and github.com/mccutchen/go-httpbin/v2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/mccutchen/go-httpbin Go | All versions | None |
github.com/mccutchen/go-httpbin Go | All versions | 2.18.0 |
github.com/mccutchen/go-httpbin Go | All versions | 2.18.0 |
github.com/mccutchen/go-httpbin/v2 Go | All versions | 2.18.0 |
github.com/mccutchen/go-httpbin/v2 Go | All versions | 2.18.0 |
github.com/mccutchen/go-httpbin/v2 Go | All versions | 2.18.0 |
Products include Httpbingo Go-Httpbin.
How do I fix CVE-2025-45286?
Upgrade github.com/mccutchen/go-httpbin to 2.18.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-45286 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-45286 exists.
Sources
Also known as GHSA-528q-4pgm-wvg2, GO-2025-3554.