github.com/mccutchen/go-httpbin
Affected
- introduced
0, fixed2.18.0(semver)
Fixed versions
2.18.0
Fix
- Fixed version
2.18.0go get github.com/mccutchen/[email protected]
Advisory
Also known as: CVE-2025-45286, GO-2025-3554
Reflected XSS in go-httpbin due to unrestricted client control over Content-Type
Description
The go-httpbin framework is vulnerable to XSS as the user can control the Response Content-Type from GET parameter. This allows attacker to execute cross site scripts in victims browser.
Affected URLs:
/response-headers?Content-Type=text/html&xss=%3Cimg/src/onerror=alert(%27xss%27)%3E/base64/PGltZy9zcmMvb25lcnJvcj1hbGVydCgneHNzJyk+?content-type=text/html/base64/decode/PGltZy9zcmMvb25lcnJvcj1hbGVydCgneHNzJyk+?content-type=text/htmlSteps to reproduce:
Suggested fix
Criticality
The following can be major impacts of the issue:
Low Basis: The source's own band: LOW
0, fixed 2.18.0 (semver)2.18.0
2.18.0go get github.com/mccutchen/[email protected]0, fixed 2.18.0 (semver)2.18.0
2.18.0go get github.com/mccutchen/go-httpbin/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0