Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/mccutchen/go-httpbin/v2
  4. ›
  5. CVE-2025-45286

CVE-2025-45286: Reflected XSS in go-httpbin due to unrestricted client control over Content-Type

March 21, 2025 (updated January 2, 2026)

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.

References

  • github.com/advisories/GHSA-528q-4pgm-wvg2
  • github.com/mccutchen/go-httpbin
  • github.com/mccutchen/go-httpbin/commit/0decfd1a2e88d85ca6bfb8a92421653f647cbc04
  • github.com/mccutchen/go-httpbin/releases/tag/v2.18.0
  • github.com/mccutchen/go-httpbin/security/advisories/GHSA-528q-4pgm-wvg2
  • nvd.nist.gov/vuln/detail/CVE-2025-45286

Code Behaviors & Features

Detect and mitigate CVE-2025-45286 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.18.0

Fixed versions

  • 2.18.0

Solution

Upgrade to version 2.18.0 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/mccutchen/go-httpbin/v2/CVE-2025-45286.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:08 +0000.