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

Machine-generated threat intelligence

AILast updated: 02/27/2026, 21:03:04 UTC

Technical Analysis

CVE-2025-12717 is a stored cross-site scripting vulnerability classified under CWE-79 affecting the List Attachments Shortcode plugin for WordPress, versions up to and including 0.4.1a. The vulnerability stems from insufficient sanitization and escaping of the 'before_list' parameter within the [list-attachments] shortcode, allowing 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 leading to session hijacking, privilege escalation, or data theft. The vulnerability is exploitable remotely over the network without user interaction beyond page viewing. The CVSS 3.1 base score is 6.4, reflecting a medium severity with low attack complexity, requiring privileges but no user interaction, and impacting confidentiality and integrity with a scope change (affecting other users). No patches are currently linked, and no known exploits have been observed in the wild. The vulnerability highlights the importance of proper input validation and output encoding in WordPress plugins, especially those that handle user-generated content or shortcode parameters.

Potential Impact

This vulnerability allows authenticated attackers with Author-level access to inject persistent malicious scripts into WordPress pages, which execute in the browsers of any users viewing those pages. The impact includes potential theft of session cookies, enabling account takeover, unauthorized actions performed on behalf of users, and exposure of sensitive information. While it does not directly affect system availability, the compromise of user accounts and data integrity can lead to reputational damage, loss of user trust, and compliance violations. Organizations relying on the affected plugin for content management or document attachment listing are at risk of targeted attacks, especially if they have multiple users with elevated privileges. The scope of impact extends beyond the attacker’s own account, affecting all visitors or users who access the infected pages. Given the medium CVSS score, the threat is significant but requires authenticated access, limiting exposure to internal or trusted users with sufficient privileges.

Mitigation Recommendations

To mitigate this vulnerability, organizations should immediately upgrade the List Attachments Shortcode plugin to a version that addresses the issue once available. Until a patch is released, administrators should restrict Author-level and higher privileges to trusted users only and review existing content for injected scripts. Implementing Web Application Firewall (WAF) rules that detect and block suspicious script tags or unusual shortcode parameters can help reduce risk. Additionally, applying Content Security Policy (CSP) headers to restrict execution of inline scripts and untrusted sources can mitigate exploitation impact. Developers maintaining the plugin should apply proper input validation and output escaping techniques, such as sanitizing the 'before_list' parameter using WordPress’s built-in functions like esc_html() or wp_kses(). Regular security audits of plugins and limiting plugin usage to trusted and actively maintained ones are recommended. Monitoring logs for unusual shortcode usage or script injections can provide early detection of exploitation attempts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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: 2/27/2026, 9:03:04 PM

Last updated: 3/26/2026, 11:10:48 AM

Views: 55

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 for AI refresh and higher limits.

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

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses