Advisory record · GHSA-528q-4pgm-wvg2

Reflected XSS in go-httpbin due to unrestricted client control over Content-Type

CVSS 6.1 MediumEPSS 0.0027 · 19th percentile

Published by the GitHub Advisory Database at 21 Mar 2025, 22:29 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/mccutchen/go-httpbinGo<2.18.02.18.0
github.com/mccutchen/go-httpbin/v2Go<2.18.02.18.0
Identifiers
GHSA-528q-4pgm-wvg2 · CVE-2025-45286 · GO-2025-3554
Weakness (CWE)
CWE-79 · CWE-80
Published
21 Mar 2025
Updated
8 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Go-httpbin versions before 2.18.0, for both the github.com/mccutchen/go-httpbin and github.com/mccutchen/go-httpbin/v2 modules, let a client set the response Content-Type through a GET parameter, enabling reflected cross-site scripting. An attacker can get a victim to open a crafted link, then run script in the victim's browser, which may expose sensitive data or session tokens. Upgrade to version 2.18.0 or later.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.1 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N ADP (CISA-ADP)
  • CISA KEV Not listed.
  • EPSS 0.0027, the 19th percentile, on 22 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 2 Jan 2026, 15:15 UTC Confirmed by NVD
  2. 31 Oct 2026, 15:05 UTC First seen by agentprime
  3. 31 Oct 2026, 15:05 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.