{"id":"CVE-2025-45286","aliases":["GHSA-528q-4pgm-wvg2","GO-2025-3554"],"url":"https://o3.security/vulnerability/CVE-2025-45286","summary":"Reflected XSS in go-httpbin due to unrestricted client control over Content-Type","details":"### Description\n\nThe 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.\n\n### Affected URLs:\n- `/response-headers?Content-Type=text/html&xss=%3Cimg/src/onerror=alert(%27xss%27)%3E`\n- `/base64/PGltZy9zcmMvb25lcnJvcj1hbGVydCgneHNzJyk+?content-type=text/html`\n- `/base64/decode/PGltZy9zcmMvb25lcnJvcj1hbGVydCgneHNzJyk+?content-type=text/html`\n\n### Steps to reproduce:\n1. Visit one of the above mentioned URLs.\n2. XSS window will popup\n\n### Suggested fix\n- Allow Only Safe Content-Type Values Or give users option to define whitelisted Content-Type headers\n\n\n### Criticality\nThe following can be major impacts of the issue:\n* Access to victim's sensitive Personal Identifiable Information.\n* Access to CSRF token\n* Cookie injection\n* Phishing\n* And any other thing Javascript can perform","published":"2026-01-02T00:00:00Z","modified":"2026-08-12T03:51:24.377682336Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.00271,"percentile":0.1919,"asOf":"2026-09-11"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/mccutchen/go-httpbin","fixedVersion":"2.18.0"},{"ecosystem":"Go","name":"github.com/mccutchen/go-httpbin/v2","fixedVersion":"2.18.0"}],"fix":{"url":"https://github.com/mccutchen/go-httpbin/commit/0decfd1a2e88d85ca6bfb8a92421653f647cbc04","label":"mccutchen/go-httpbin@0decfd1"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/45xxx/CVE-2025-45286.json"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-528q-4pgm-wvg2"},{"type":"ADVISORY","url":"https://github.com/mccutchen/go-httpbin/security/advisories/GHSA-528q-4pgm-wvg2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-45286"},{"type":"WEB","url":"https://github.com/mccutchen/go-httpbin/commit/0decfd1a2e88d85ca6bfb8a92421653f647cbc04"},{"type":"PACKAGE","url":"https://github.com/mccutchen/go-httpbin"},{"type":"WEB","url":"https://github.com/mccutchen/go-httpbin/releases/tag/v2.18.0"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:24.377682336Z"}}