{"id":"CVE-2025-45286","aliases":["CVE-2025-45286","GHSA-528q-4pgm-wvg2","GO-2025-3554"],"related":[],"kind":"vulnerability","state":"published","title":"Reflected XSS in go-httpbin due to unrestricted client control over Content-Type","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"en","text":"Reflected XSS in go-httpbin due to unrestricted client control over Content-Type in github.com/mccutchen/go-httpbin","format":"markdown","source":"go"},{"lang":"es","text":"Una vulnerabilidad de cross-site scripting (XSS) en mccutchen httpbin v2.17.1 permite a los atacantes ejecutar scripts web o HTML arbitrarios a través de una carga útil manipulada.","source":"nvd"}],"published":"2025-03-21T22:29:47.000Z","modified":"2026-11-04T22:10:00.210Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"}],"cwes":["CWE-79","CWE-80"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.18.0"}],"ecosystem":"Go","package":"github.com/mccutchen/go-httpbin","purl":"pkg:golang/github.com/mccutchen/go-httpbin","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.18.0"}],"ecosystem":"Go","package":"github.com/mccutchen/go-httpbin/v2","purl":"pkg:golang/github.com/mccutchen/go-httpbin/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/mccutchen/go-httpbin","purl":"pkg:golang/github.com/mccutchen/go-httpbin","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.18.0"}],"ecosystem":"Go","package":"github.com/mccutchen/go-httpbin/v2","purl":"pkg:golang/github.com/mccutchen/go-httpbin/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.18.0"}],"vendor":"httpbingo","product":"go-httpbin","cpe":"cpe:2.3:a:httpbingo:go-httpbin:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/mccutchen/go-httpbin/security/advisories/GHSA-528q-4pgm-wvg2","tags":["advisory","exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/advisories/GHSA-528q-4pgm-wvg2","tags":["patch","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-45286","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mccutchen/go-httpbin/commit/0decfd1a2e88d85ca6bfb8a92421653f647cbc04","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/mccutchen/go-httpbin","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/mccutchen/go-httpbin/releases/tag/v2.18.0","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-01-06T17:27:45.070Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-45286","url":"https://www.cve.org/CVERecord?id=CVE-2025-45286","licence":"CVE Terms of Use","modified":"2026-01-06T17:37:47.062Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-528q-4pgm-wvg2","url":"https://github.com/advisories/GHSA-528q-4pgm-wvg2","licence":"CC-BY-4.0","modified":"2026-07-08T07:14:02.850Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3554","url":"https://pkg.go.dev/vuln/GO-2025-3554","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:26.142Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-45286","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-45286","licence":"Public domain","modified":"2026-11-04T22:10:00.210Z"}],"updatedAt":"2026-11-25T22:59:10.148Z","epss":{"score":0.00267,"percentile":0.20078,"date":"2026-12-02T12:00:21.000Z"}}