GHSA-p4f6-h8jj-vfvf: Duplicate Advisory Cross-Site Scripting Vulnerability

LOW
CWE-79
Published
Advisory Summary

GHSA-p4f6-h8jj-vfvf is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves reflected xss in go-httpbin due to unrestricted client control over content-type. Remediation is available by upgrading affected packages to version 2.18.0.

GHSA-p4f6-h8jj-vfvf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-p4f6-h8jj-vfvf
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-p4f6-h8jj-vfvf

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/mccutchen/go-httpbin/v2 fixed: 2.18.0
Upgrade github.com/mccutchen/go-httpbin/v2 to 2.18.0
github.com/mccutchen/go-httpbin fixed: Latest secure release
Upgrade github.com/mccutchen/go-httpbin to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/mccutchen/go-httpbin/v2

How to Check if You Are Affected

To determine whether your application is affected by GHSA-p4f6-h8jj-vfvf, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for github.com/mccutchen/go-httpbin/v2

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.18.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-528q-4pgm-wvg2. This link is maintained to preserve external references. ### Original Description 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.

GHSA-p4f6-h8jj-vfvf Affected Duplicate Advisory Versions

2 component(s)
Fixed Versions:
2.18.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/mccutchen/go-httpbin/v2
Go
< 2.18.0
2.18.0
github.com/mccutchen/go-httpbin
Go
≤ 1.1.1

References

Frequently Asked Questions

What is GHSA-p4f6-h8jj-vfvf?
GHSA-p4f6-h8jj-vfvf is a security vulnerability in Duplicate Advisory involving Reflected XSS in go-httpbin due to unrestricted client control over Content-Type under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 2.18.0 across affected packages: github.com/mccutchen/go-httpbin/v2, github.com/mccutchen/go-httpbin.
What version fixes GHSA-p4f6-h8jj-vfvf?
Upgrading to 2.18.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/mccutchen/go-httpbin/v2 affected?
Yes, github.com/mccutchen/go-httpbin/v2 is affected in releases prior to 2.18.0. Upgrade your dependency to 2.18.0 or later.
Is github.com/mccutchen/go-httpbin affected?
Yes, github.com/mccutchen/go-httpbin is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-p4f6-h8jj-vfvf?
GHSA-p4f6-h8jj-vfvf is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Go dependencies for GHSA-p4f6-h8jj-vfvf?
Run the dependency tree command: 'inspect dependencies for github.com/mccutchen/go-httpbin/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p4f6-h8jj-vfvf",
  "modified" : "2026-01-02T20:32:24Z",
  "published" : "2026-01-02T15:30:29Z",
  "withdrawn" : "2026-01-02T20:32:24Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Reflected XSS in go-httpbin due to unrestricted client control over Content-Type",
  "details" : "### Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-528q-4pgm-wvg2. This link is maintained to preserve external references.\n\n### Original Description\n\nA cross-site scripting (XSS) vulnerability in mccutchen httpbin v2.17.1 allows attackers to execute arbitrary web scripts or HTML via a crafted payload.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/mccutchen/go-httpbin/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.18.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/mccutchen/go-httpbin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "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" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-528q-4pgm-wvg2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-02T20:32:24Z",
    "nvd_published_at" : "2026-01-02T15:15:59Z"
  }
}