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-5686: CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in andreyk Paged Gallery

0
Medium
VulnerabilityCVE-2025-5686cvecve-2025-5686cwe-80
Published: Fri Jun 06 2025 (06/06/2025, 06:42:55 UTC)
Source: CVE Database V5
Vendor/Project: andreyk
Product: Paged Gallery

Description

The Paged Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'gallery' shortcode in all versions up to, and including, 0.7 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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 15:29:34 UTC

Technical Analysis

CVE-2025-5686 is a stored cross-site scripting (XSS) vulnerability identified in the Paged Gallery plugin for WordPress, developed by andreyk. This vulnerability affects all versions up to and including 0.7. The root cause is insufficient sanitization and escaping of user-supplied input within the 'gallery' shortcode attributes, which allows authenticated users with contributor-level permissions or higher to inject arbitrary JavaScript code into pages. When other users access these pages, the injected scripts execute in their browsers, potentially leading to session hijacking, privilege escalation, or other malicious activities. The vulnerability is classified under CWE-80, which pertains to improper neutralization of script-related HTML tags. The CVSS v3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, requiring privileges, no user interaction, and a scope change. Although no known exploits have been reported in the wild, the vulnerability poses a significant risk to WordPress sites using this plugin, especially those with multiple contributors or editors. The vulnerability affects the confidentiality and integrity of data but does not impact availability. The plugin currently lacks an official patch, increasing the urgency for mitigations or alternative protective measures.

Potential Impact

The primary impact of CVE-2025-5686 is the compromise of confidentiality and integrity on affected WordPress sites. Attackers with contributor-level access can inject malicious scripts that execute in the context of other users, potentially stealing session cookies, performing actions on behalf of victims, or defacing content. This can lead to unauthorized access, data leakage, and erosion of user trust. Since the vulnerability requires authenticated access, the risk is somewhat limited to environments where multiple users have editing privileges. However, many WordPress sites operate with contributor or editor roles assigned to various users, increasing exposure. The vulnerability does not directly affect availability but can indirectly cause denial of service through malicious script execution or site defacement. Organizations relying on the Paged Gallery plugin for content display are at risk of reputational damage and potential regulatory consequences if user data is compromised. The lack of known exploits in the wild suggests limited immediate threat, but the ease of exploitation and medium severity score indicate a moderate risk level that should be addressed promptly.

Mitigation Recommendations

To mitigate CVE-2025-5686, organizations should first check for any official patches or updates from the plugin developer and apply them immediately once available. In the absence of a patch, administrators should restrict contributor-level access to trusted users only and review user permissions to minimize the number of accounts capable of injecting malicious content. Implementing a web application firewall (WAF) with rules to detect and block suspicious script injections in shortcode attributes can provide an additional layer of defense. Site administrators should also enable Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts. Regularly scanning the website for injected scripts or anomalous content can help detect exploitation attempts early. Additionally, consider disabling or replacing the Paged Gallery plugin with alternative, actively maintained plugins that follow secure coding practices. Educating content contributors about safe input practices and monitoring user activity logs for unusual behavior can further reduce risk.

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

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-06-04T14:00:17.495Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68429199182aa0cae20492f3

Added to database: 6/6/2025, 6:58:33 AM

Last enriched: 2/27/2026, 3:29:34 PM

Last updated: 3/25/2026, 1:32:46 AM

Views: 50

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