CVE-2025-12691: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in sayontan Photonic Gallery & Lightbox for Flickr, SmugMug & Others
The Photonic Gallery & Lightbox for Flickr, SmugMug & Others plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's lightbox functionality in all versions up to, and including, 3.21 due to insufficient input sanitization and output escaping on user supplied caption attribute. 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 the injected page.
AI Analysis
Technical Summary
CVE-2025-12691 is a stored cross-site scripting vulnerability classified under CWE-79, found in the Photonic Gallery & Lightbox for Flickr, SmugMug & Others WordPress plugin developed by sayontan. The vulnerability exists in all versions up to and including 3.21 due to improper neutralization of user-supplied input in the caption attribute used by the plugin's lightbox functionality. Authenticated users with contributor-level access or above can inject arbitrary JavaScript code into the caption field. Because the plugin fails to properly sanitize and escape this input before rendering it on web pages, the malicious script is stored persistently and executed in the context of any user who views the affected page. This can lead to session hijacking, defacement, or redirection to malicious sites. The vulnerability is remotely exploitable over the network without user interaction but requires low privileges (contributor access). The CVSS v3.1 base score is 6.4, indicating medium severity, with impact on confidentiality and integrity but no direct impact on availability. No public exploits or active exploitation have been reported to date. The vulnerability was published on November 18, 2025, with no patch links currently available, emphasizing the need for prompt vendor response and user mitigation.
Potential Impact
For European organizations, this vulnerability poses a moderate risk primarily to websites using the Photonic Gallery & Lightbox plugin on WordPress, especially those with multiple contributors or editors who can upload or edit content. Successful exploitation could allow attackers to execute malicious scripts in the browsers of site visitors or administrators, potentially leading to session hijacking, theft of sensitive information, or unauthorized actions performed on behalf of users. This could damage organizational reputation, lead to data breaches, or facilitate further attacks such as phishing. The impact is heightened for organizations relying on WordPress for public-facing websites, digital media, or e-commerce platforms. Since the vulnerability requires contributor-level access, insider threats or compromised contributor accounts increase risk. The lack of a patch at the time of disclosure means organizations must rely on compensating controls until updates are available.
Mitigation Recommendations
1. Immediately audit and restrict contributor-level access to trusted users only, minimizing the number of users who can inject content. 2. Monitor and review all user-generated content, especially captions in galleries, for suspicious scripts or HTML. 3. Deploy a Web Application Firewall (WAF) with rules specifically targeting stored XSS attacks to block malicious payloads before they reach the application. 4. Implement Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers. 5. Regularly update the Photonic Gallery & Lightbox plugin as soon as the vendor releases a patch addressing this vulnerability. 6. Educate content contributors about secure content practices and risks of injecting untrusted code. 7. Consider temporarily disabling or replacing the vulnerable plugin if patching is delayed. 8. Conduct penetration testing focused on XSS vulnerabilities to detect any residual or similar issues.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain
CVE-2025-12691: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in sayontan Photonic Gallery & Lightbox for Flickr, SmugMug & Others
Description
The Photonic Gallery & Lightbox for Flickr, SmugMug & Others plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's lightbox functionality in all versions up to, and including, 3.21 due to insufficient input sanitization and output escaping on user supplied caption attribute. 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 the injected page.
AI-Powered Analysis
Technical Analysis
CVE-2025-12691 is a stored cross-site scripting vulnerability classified under CWE-79, found in the Photonic Gallery & Lightbox for Flickr, SmugMug & Others WordPress plugin developed by sayontan. The vulnerability exists in all versions up to and including 3.21 due to improper neutralization of user-supplied input in the caption attribute used by the plugin's lightbox functionality. Authenticated users with contributor-level access or above can inject arbitrary JavaScript code into the caption field. Because the plugin fails to properly sanitize and escape this input before rendering it on web pages, the malicious script is stored persistently and executed in the context of any user who views the affected page. This can lead to session hijacking, defacement, or redirection to malicious sites. The vulnerability is remotely exploitable over the network without user interaction but requires low privileges (contributor access). The CVSS v3.1 base score is 6.4, indicating medium severity, with impact on confidentiality and integrity but no direct impact on availability. No public exploits or active exploitation have been reported to date. The vulnerability was published on November 18, 2025, with no patch links currently available, emphasizing the need for prompt vendor response and user mitigation.
Potential Impact
For European organizations, this vulnerability poses a moderate risk primarily to websites using the Photonic Gallery & Lightbox plugin on WordPress, especially those with multiple contributors or editors who can upload or edit content. Successful exploitation could allow attackers to execute malicious scripts in the browsers of site visitors or administrators, potentially leading to session hijacking, theft of sensitive information, or unauthorized actions performed on behalf of users. This could damage organizational reputation, lead to data breaches, or facilitate further attacks such as phishing. The impact is heightened for organizations relying on WordPress for public-facing websites, digital media, or e-commerce platforms. Since the vulnerability requires contributor-level access, insider threats or compromised contributor accounts increase risk. The lack of a patch at the time of disclosure means organizations must rely on compensating controls until updates are available.
Mitigation Recommendations
1. Immediately audit and restrict contributor-level access to trusted users only, minimizing the number of users who can inject content. 2. Monitor and review all user-generated content, especially captions in galleries, for suspicious scripts or HTML. 3. Deploy a Web Application Firewall (WAF) with rules specifically targeting stored XSS attacks to block malicious payloads before they reach the application. 4. Implement Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers. 5. Regularly update the Photonic Gallery & Lightbox plugin as soon as the vendor releases a patch addressing this vulnerability. 6. Educate content contributors about secure content practices and risks of injecting untrusted code. 7. Consider temporarily disabling or replacing the vulnerable plugin if patching is delayed. 8. Conduct penetration testing focused on XSS vulnerabilities to detect any residual or similar issues.
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-04T11:38:18.450Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 691c3e32a312a743bb510b9f
Added to database: 11/18/2025, 9:36:50 AM
Last enriched: 11/18/2025, 9:52:58 AM
Last updated: 11/22/2025, 5:43:31 AM
Views: 16
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-11186: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in humanityco Cookie Notice & Compliance for GDPR / CCPA
MediumCVE-2025-2609: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in MagnusSolution MagnusBilling
HighCVE-2024-9643: CWE-489 Active Debug Code in Four-Faith F3x36
CriticalCVE-2025-65947: CWE-400: Uncontrolled Resource Consumption in jzeuzs thread-amount
HighCVE-2025-65946: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in RooCodeInc Roo-Code
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.