Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-12717: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cgrymala List Attachments Shortcode

0
Medium
VulnerabilityCVE-2025-12717cvecve-2025-12717cwe-79
Published: Sat Dec 06 2025 (12/06/2025, 05:49:31 UTC)
Source: CVE Database V5
Vendor/Project: cgrymala
Product: List Attachments Shortcode

Description

The List Attachments Shortcode plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'before_list' parameter in the [list-attachments] shortcode in all versions up to, and including, 0.4.1a due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

AI-Powered Analysis

AILast updated: 12/13/2025, 07:06:43 UTC

Technical Analysis

CVE-2025-12717 is a stored Cross-Site Scripting vulnerability identified in the List Attachments Shortcode plugin for WordPress, affecting all versions up to and including 0.4.1a. The vulnerability stems from insufficient sanitization and escaping of the 'before_list' parameter used within the [list-attachments] shortcode. This parameter can be manipulated by authenticated users with Author-level or higher privileges to inject arbitrary JavaScript code into pages. When other users access these pages, the malicious scripts execute in their browsers, potentially allowing attackers to steal session cookies, perform actions on behalf of users, or escalate privileges within the WordPress environment. The vulnerability has a CVSS 3.1 base score of 6.4, reflecting medium severity, with an attack vector over the network, low attack complexity, requiring privileges (Author or higher), no user interaction, and affecting confidentiality and integrity with a scope change. No public exploits have been reported yet. The vulnerability is particularly dangerous because it allows persistent script injection, affecting all visitors to the compromised pages. The root cause is the plugin's failure to properly neutralize input during web page generation, a classic CWE-79 issue. Since the plugin is widely used in WordPress sites to manage attachment listings, the exposure can be significant if not remediated promptly.

Potential Impact

For European organizations, this vulnerability poses a risk primarily to the confidentiality and integrity of web applications running WordPress with the affected plugin. Attackers with Author-level access can inject malicious scripts that execute in the context of other users, potentially leading to session hijacking, unauthorized actions, or data theft. This can damage organizational reputation, lead to data breaches, and compromise user trust. Since WordPress powers a substantial portion of websites in Europe, including corporate, governmental, and non-profit sectors, the impact can be widespread. The vulnerability does not affect availability directly but can facilitate further attacks that might. Organizations with multi-user WordPress environments where multiple authors contribute content are at higher risk. Additionally, the scope change in the CVSS vector indicates that the vulnerability can affect resources beyond the initially compromised component, increasing potential damage. The lack of known exploits in the wild currently reduces immediate risk but does not eliminate the threat, especially once exploit code becomes available.

Mitigation Recommendations

1. Immediately restrict Author-level and higher privileges to trusted users only, minimizing the risk of malicious input injection. 2. Monitor and audit user-generated content, especially content that uses the [list-attachments] shortcode with the 'before_list' parameter. 3. Implement Web Application Firewall (WAF) rules to detect and block suspicious script injection patterns targeting this parameter. 4. Apply strict input validation and output escaping in any custom code interacting with the plugin or shortcode parameters. 5. Regularly update the List Attachments Shortcode plugin once the vendor releases a patched version addressing this vulnerability. 6. Educate content authors about the risks of injecting untrusted content and enforce content submission policies. 7. Use Content Security Policy (CSP) headers to limit the execution of unauthorized scripts on affected sites. 8. Conduct penetration testing focused on XSS vulnerabilities in WordPress environments to identify and remediate similar issues proactively.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2025-11-04T20:41:28.945Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6933c71c11163305efef353e

Added to database: 12/6/2025, 6:03:08 AM

Last enriched: 12/13/2025, 7:06:43 AM

Last updated: 2/7/2026, 10:08:47 AM

Views: 33

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats