CVE-2025-12717: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cgrymala List Attachments Shortcode
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 Analysis
Technical Summary
CVE-2025-12717 identifies a stored Cross-Site Scripting (XSS) vulnerability in the List Attachments Shortcode plugin for WordPress, affecting all versions up to and including 0.4.1a. The vulnerability arises from improper neutralization of input during web page generation, specifically through the 'before_list' parameter in the [list-attachments] shortcode. Authenticated users with Author-level access or higher can inject arbitrary JavaScript code into pages by manipulating this parameter, due to insufficient input sanitization and lack of output escaping. Once injected, the malicious scripts execute in the context of any user who views the compromised page, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of the victim. The vulnerability is classified under CWE-79 and has a CVSS v3.1 base score of 6.4, reflecting medium severity. The attack vector is network-based with low attack complexity, requiring privileges but no user interaction. The scope is changed (S:C) because the vulnerability can affect other users beyond the attacker. No known exploits have been reported in the wild yet. The plugin is commonly used in WordPress environments to list attachments via shortcode, making it relevant for websites with multiple content contributors. The vulnerability's exploitation could undermine the confidentiality and integrity of user data and site content, though it does not directly affect availability.
Potential Impact
For European organizations, this vulnerability poses a moderate risk primarily to websites using the List Attachments Shortcode plugin on WordPress, especially those with multiple authors or contributors who have Author-level access. Exploitation could lead to unauthorized script execution in users' browsers, enabling session hijacking, data theft, or unauthorized actions performed with user privileges. This can damage organizational reputation, lead to data breaches involving personal or sensitive information, and potentially facilitate further attacks such as phishing or malware distribution. Since WordPress powers a significant portion of European websites, including e-commerce, government, and media sites, the impact can be widespread. However, the requirement for authenticated access limits the attack surface to insiders or compromised accounts. The vulnerability does not affect system availability but threatens confidentiality and integrity of web content and user sessions. Organizations handling sensitive user data or providing critical services via WordPress should prioritize mitigation to avoid reputational and regulatory consequences under GDPR.
Mitigation Recommendations
1. Monitor the official plugin repository and vendor announcements for a security patch addressing CVE-2025-12717 and apply updates promptly once available. 2. Until a patch is released, restrict Author-level and higher privileges to trusted users only, minimizing the risk of malicious input injection. 3. Implement Web Application Firewall (WAF) rules to detect and block suspicious payloads targeting the 'before_list' parameter in the shortcode. 4. Conduct manual code review and apply temporary input sanitization and output escaping for the 'before_list' parameter in the plugin source code if feasible. 5. Educate content authors and administrators about the risk of injecting untrusted content and enforce strict content validation policies. 6. Regularly audit user accounts and permissions to prevent privilege escalation or unauthorized access. 7. Employ Content Security Policy (CSP) headers to limit the impact of potential XSS by restricting script sources. 8. Enable logging and monitoring for unusual activities related to shortcode usage or user input on affected pages. These measures collectively reduce the risk of exploitation and limit potential damage.
Affected Countries
Germany, United Kingdom, France, Netherlands, Italy, Spain, Poland, Sweden
CVE-2025-12717: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cgrymala 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
Technical Analysis
CVE-2025-12717 identifies a stored Cross-Site Scripting (XSS) vulnerability in the List Attachments Shortcode plugin for WordPress, affecting all versions up to and including 0.4.1a. The vulnerability arises from improper neutralization of input during web page generation, specifically through the 'before_list' parameter in the [list-attachments] shortcode. Authenticated users with Author-level access or higher can inject arbitrary JavaScript code into pages by manipulating this parameter, due to insufficient input sanitization and lack of output escaping. Once injected, the malicious scripts execute in the context of any user who views the compromised page, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of the victim. The vulnerability is classified under CWE-79 and has a CVSS v3.1 base score of 6.4, reflecting medium severity. The attack vector is network-based with low attack complexity, requiring privileges but no user interaction. The scope is changed (S:C) because the vulnerability can affect other users beyond the attacker. No known exploits have been reported in the wild yet. The plugin is commonly used in WordPress environments to list attachments via shortcode, making it relevant for websites with multiple content contributors. The vulnerability's exploitation could undermine the confidentiality and integrity of user data and site content, though it does not directly affect availability.
Potential Impact
For European organizations, this vulnerability poses a moderate risk primarily to websites using the List Attachments Shortcode plugin on WordPress, especially those with multiple authors or contributors who have Author-level access. Exploitation could lead to unauthorized script execution in users' browsers, enabling session hijacking, data theft, or unauthorized actions performed with user privileges. This can damage organizational reputation, lead to data breaches involving personal or sensitive information, and potentially facilitate further attacks such as phishing or malware distribution. Since WordPress powers a significant portion of European websites, including e-commerce, government, and media sites, the impact can be widespread. However, the requirement for authenticated access limits the attack surface to insiders or compromised accounts. The vulnerability does not affect system availability but threatens confidentiality and integrity of web content and user sessions. Organizations handling sensitive user data or providing critical services via WordPress should prioritize mitigation to avoid reputational and regulatory consequences under GDPR.
Mitigation Recommendations
1. Monitor the official plugin repository and vendor announcements for a security patch addressing CVE-2025-12717 and apply updates promptly once available. 2. Until a patch is released, restrict Author-level and higher privileges to trusted users only, minimizing the risk of malicious input injection. 3. Implement Web Application Firewall (WAF) rules to detect and block suspicious payloads targeting the 'before_list' parameter in the shortcode. 4. Conduct manual code review and apply temporary input sanitization and output escaping for the 'before_list' parameter in the plugin source code if feasible. 5. Educate content authors and administrators about the risk of injecting untrusted content and enforce strict content validation policies. 6. Regularly audit user accounts and permissions to prevent privilege escalation or unauthorized access. 7. Employ Content Security Policy (CSP) headers to limit the impact of potential XSS by restricting script sources. 8. Enable logging and monitoring for unusual activities related to shortcode usage or user input on affected pages. These measures collectively reduce the risk of exploitation and limit potential damage.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
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/6/2025, 6:10:00 AM
Last updated: 12/9/2025, 6:50:25 PM
Views: 14
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-65573: n/a
UnknownCVE-2025-14334: SQL Injection in itsourcecode Student Management System
MediumCVE-2025-11531: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in HP Inc HP System Event Utility
MediumCVE-2025-64894: Integer Overflow or Wraparound (CWE-190) in Adobe DNG SDK
MediumCVE-2025-64893: Out-of-bounds Read (CWE-125) in Adobe DNG SDK
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.