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-12691: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in sayontan Photonic Gallery & Lightbox for Flickr, SmugMug & Others

0
Medium
VulnerabilityCVE-2025-12691cvecve-2025-12691cwe-79
Published: Tue Nov 18 2025 (11/18/2025, 09:27:39 UTC)
Source: CVE Database V5
Vendor/Project: sayontan
Product: 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

AILast updated: 11/25/2025, 11:11:36 UTC

Technical Analysis

CVE-2025-12691 is a stored cross-site scripting vulnerability identified in the Photonic Gallery & Lightbox for Flickr, SmugMug & Others WordPress plugin, versions up to and including 3.21. The vulnerability stems from insufficient sanitization and escaping of user-supplied input in the caption attribute used by the plugin's lightbox feature. Authenticated users with contributor-level privileges or higher can exploit this flaw by injecting arbitrary JavaScript code into the caption field. Because the malicious script is stored persistently, it executes whenever any user accesses the page containing the injected caption, potentially leading to session hijacking, privilege escalation, or unauthorized actions within the context of the victim's browser session. The attack vector is remote and network accessible, with low complexity and no need for user interaction, but requires authenticated access with contributor or higher privileges. The vulnerability impacts confidentiality and integrity but does not affect system availability. Although no known exploits are currently reported in the wild, the presence of this vulnerability in a popular WordPress plugin used for media galleries poses a significant risk to websites relying on this plugin for content display. The CVSS 3.1 base score is 6.4, indicating medium severity. The vulnerability is classified under CWE-79, which covers improper neutralization of input during web page generation leading to cross-site scripting attacks. No official patch links are currently available, so mitigation involves monitoring for updates or applying manual input validation and output encoding to prevent script injection.

Potential Impact

For European organizations, this vulnerability can lead to unauthorized script execution within their WordPress-based websites, potentially compromising user sessions, stealing sensitive information, or performing actions on behalf of legitimate users. Organizations with multiple contributors managing content are at higher risk since contributor-level access is sufficient to exploit the vulnerability. This can undermine trust in affected websites, lead to data leakage, and facilitate further attacks such as phishing or malware distribution. The impact is particularly critical for sectors with high regulatory requirements around data protection, such as finance, healthcare, and government, where confidentiality breaches can result in legal penalties and reputational damage. Since the vulnerability does not affect availability, denial-of-service impacts are unlikely, but the integrity and confidentiality of user data and site content are at risk. The medium CVSS score reflects a moderate but actionable threat that should be addressed promptly to prevent exploitation.

Mitigation Recommendations

European organizations should prioritize updating the Photonic Gallery & Lightbox plugin to a patched version once it becomes available from the vendor. Until an official patch is released, administrators should restrict contributor-level access to trusted users only and audit existing captions for suspicious content. Implementing web application firewall (WAF) rules to detect and block malicious script patterns in HTTP requests targeting the caption parameter can provide interim protection. Additionally, site owners can apply manual input validation and output encoding on caption fields within the plugin's codebase to neutralize potentially harmful scripts. Regular security scanning and monitoring for anomalous user behavior or injected scripts are recommended. Organizations should also educate content contributors about the risks of injecting untrusted content and enforce strict content submission policies. Finally, maintaining up-to-date backups and incident response plans will help mitigate potential damage from exploitation.

Need more detailed analysis?Upgrade to Pro Console

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/25/2025, 11:11:36 AM

Last updated: 1/7/2026, 8:55:34 AM

Views: 49

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

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

Latest Threats