{"id":"GHSA-528q-4pgm-wvg2","revision":"0558cf7c6a1c43e48e25a6f01d6f8793","records":[{"revision":"0558cf7c6a1c43e48e25a6f01d6f8793","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-528q-4pgm-wvg2","aliases":["CVE-2025-45286","GO-2025-3554"],"title":"Reflected XSS in go-httpbin due to unrestricted client control over Content-Type","description":"### 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","state":0,"publishedAt":"2025-03-21T22:29:47+00:00","modifiedAt":"2026-07-08T07:14:02.8509466+00:00","affected":[{"ecosystem":"Go","name":"github.com/mccutchen/go-httpbin","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.18.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/mccutchen/go-httpbin/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.18.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/mccutchen/go-httpbin/security/advisories/GHSA-528q-4pgm-wvg2","https://nvd.nist.gov/vuln/detail/CVE-2025-45286","https://github.com/mccutchen/go-httpbin/commit/0decfd1a2e88d85ca6bfb8a92421653f647cbc04","https://github.com/mccutchen/go-httpbin","https://github.com/mccutchen/go-httpbin/releases/tag/v2.18.0"],"sourceUrl":"https://github.com/advisories/GHSA-528q-4pgm-wvg2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-528q-4pgm-wvg2","identifiers":["GHSA-528q-4pgm-wvg2","CVE-2025-45286","GO-2025-3554"]},"retained":false,"historicalAffected":[]}],"coverage":[]}