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/29/2025, 09:11:24 UTC

Technical Analysis

CVE-2025-11866 is a stored cross-site scripting vulnerability classified under CWE-79, found in the aurelienpierre Photographers galleries plugin for WordPress. This vulnerability affects all versions up to and including 1.1.8. The root cause is the plugin's failure to properly sanitize user inputs and escape outputs when processing multiple shortcode attributes such as `w`, `h`, `raw_css`, and `look`. These attributes are inserted directly into HTML attributes and inline CSS styles without adequate neutralization, allowing an authenticated attacker with contributor-level access or higher to inject arbitrary JavaScript code. Because the malicious script is stored persistently in the website’s content, it executes whenever any user accesses the compromised page, potentially leading to session hijacking, unauthorized actions, or data theft. The CVSS 3.1 base score is 6.4, reflecting medium severity, with an attack vector of network, low attack complexity, requiring privileges (contributor or above), no user interaction, and a scope change. No public exploits have been reported yet, but the vulnerability poses a significant risk to sites that allow contributor-level users to add or edit content. The vulnerability highlights the importance of input validation and output encoding in web applications, especially in plugins that handle user-generated content.

Potential Impact

For European organizations, this vulnerability can lead to unauthorized script execution within their WordPress sites, compromising user sessions, stealing sensitive information, or performing actions on behalf of legitimate users. Organizations in sectors relying heavily on WordPress for public-facing content, such as media, creative agencies, and e-commerce, may face reputational damage and data breaches. The requirement for contributor-level access limits the attack surface but does not eliminate risk, especially in environments with multiple content editors or less stringent access controls. The scope change in the CVSS vector indicates that the vulnerability can affect components beyond the initially targeted plugin, potentially impacting the broader site integrity. Given the widespread use of WordPress in Europe and the popularity of photography and portfolio plugins, the vulnerability could be exploited to target European users and customers, leading to privacy violations under GDPR if personal data is compromised. Additionally, the persistent nature of stored XSS increases the risk of long-term exploitation and automated attacks.

Mitigation Recommendations

European organizations should immediately audit user roles and permissions within their WordPress installations, ensuring that only trusted users have contributor-level or higher access. Implement strict content review workflows to detect suspicious shortcode usage or unexpected script insertions. Employ Web Application Firewalls (WAFs) with rules targeting XSS payloads in shortcode attributes. Monitor logs for unusual editing activity or content changes involving the vulnerable attributes. Since no official patch is currently available, consider temporarily disabling or removing the Photographers galleries plugin if feasible. Educate content contributors about the risks of injecting untrusted code and enforce the use of safe content practices. Once a patch or update is released by the vendor, prioritize its deployment. Additionally, implement Content Security Policy (CSP) headers to restrict script execution sources, mitigating the impact of potential XSS attacks. Regularly scan WordPress sites with security tools to detect stored XSS and other vulnerabilities.

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/29/2025, 9:11:24 AM

Last updated: 12/14/2025, 12:15:34 PM

Views: 25

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