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-11866: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in aurelienpierre Photographers galleries

0
Medium
VulnerabilityCVE-2025-11866cvecve-2025-11866cwe-79
Published: Wed Oct 22 2025 (10/22/2025, 08:27:08 UTC)
Source: CVE Database V5
Vendor/Project: aurelienpierre
Product: Photographers galleries

Description

The Photographers galleries plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple shortcode attributes (`w`, `h`, `raw_css`, `look`, etc.) in all versions up to, and including, 1.1.8. This is due to the plugin not properly sanitizing user input or escaping output when inserting these values into HTML attributes and inline styles. 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

AILast updated: 10/22/2025, 08:43:37 UTC

Technical Analysis

CVE-2025-11866 is a stored Cross-Site Scripting (XSS) vulnerability identified in the aurelienpierre Photographers galleries plugin for WordPress, affecting all versions up to and including 1.1.8. The vulnerability arises because the plugin fails to properly sanitize user input and escape output when processing multiple shortcode attributes such as `w`, `h`, `raw_css`, and `look`. These attributes are inserted directly into HTML attributes and inline styles without adequate neutralization, allowing an authenticated attacker with contributor-level permissions or higher to inject arbitrary JavaScript code. Since the injected scripts are stored and rendered whenever any user accesses the infected page, this can lead to session hijacking, theft of cookies, or execution of malicious actions on behalf of the victim user. The vulnerability does not require user interaction beyond visiting the compromised page but does require the attacker to have authenticated access with contributor or higher privileges, which is common in collaborative WordPress environments. The CVSS 3.1 base score is 6.4 (medium severity), reflecting the network attack vector, low attack complexity, privileges required, no user interaction, and partial impact on confidentiality and integrity. No public exploits are known at this time, and no official patches have been linked yet. The vulnerability was reserved and published in October 2025 by Wordfence. Given the widespread use of WordPress and the popularity of photography and media-related plugins, this vulnerability poses a tangible risk to websites that use this plugin and allow contributor-level access to untrusted users.

Potential Impact

For European organizations, this vulnerability can lead to unauthorized script execution within the context of affected websites, potentially compromising user sessions and sensitive information. Organizations relying on WordPress sites with the Photographers galleries plugin are at risk of attackers injecting malicious code that could redirect users to phishing sites, steal authentication tokens, or manipulate site content. This can damage brand reputation, lead to data breaches, and violate data protection regulations such as GDPR if personal data is compromised. The requirement for contributor-level access limits the attack surface but does not eliminate risk, especially in environments with multiple content editors or external contributors. The stored nature of the XSS means that once exploited, the malicious payload persists and affects all visitors, increasing the potential impact. European media, creative agencies, and e-commerce sites using this plugin are particularly vulnerable. Additionally, the cross-site scripting could be leveraged as a foothold for further attacks, including privilege escalation or lateral movement within the web application environment.

Mitigation Recommendations

1. Immediately restrict contributor-level access to trusted users only until a patch is available. 2. Monitor and audit all user-generated content, especially shortcode attributes related to galleries, for suspicious or unexpected input. 3. Apply manual input validation and output escaping on shortcode attributes in the plugin code if feasible, focusing on sanitizing HTML attributes and inline styles to neutralize script injection vectors. 4. Disable or remove the Photographers galleries plugin if it is not essential to reduce attack surface. 5. Once an official patch is released, promptly update the plugin to the fixed version. 6. Employ Web Application Firewalls (WAFs) with rules targeting XSS payloads in shortcode parameters as a temporary protective measure. 7. Educate content contributors about the risks of injecting untrusted code or content. 8. Regularly scan the website for injected scripts or anomalous content to detect exploitation attempts early. 9. Implement Content Security Policy (CSP) headers to limit the impact of any injected scripts. 10. Maintain regular backups to restore clean site states if compromise occurs.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-10-16T14:54:37.047Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68f897b1d59611fbd969792d

Added to database: 10/22/2025, 8:37:05 AM

Last enriched: 10/22/2025, 8:43:37 AM

Last updated: 10/29/2025, 7:00:54 AM

Views: 8

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 enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats