CVE-2025-12691
📋 TL;DR
This stored XSS vulnerability in the Photonic Gallery WordPress plugin allows authenticated attackers with contributor-level access or higher to inject malicious scripts into web pages via caption attributes. The scripts execute when users view the compromised pages, potentially stealing session cookies or performing unauthorized actions. All WordPress sites using Photonic Gallery versions up to 3.21 are affected.
💻 Affected Systems
- Photonic Gallery & Lightbox for Flickr, SmugMug & Others WordPress plugin
⚠️ Manual Verification Required
This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.
Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).
🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Attackers could steal administrator credentials, deface websites, redirect users to malicious sites, or install backdoors for persistent access.
Likely Case
Session hijacking, credential theft, or defacement of vulnerable pages by contributors or authors with malicious intent.
If Mitigated
Limited to authenticated users only, with minimal impact if proper user access controls and content review processes are in place.
🎯 Exploit Status
Exploitation requires authenticated access but is technically simple once authenticated.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 3.22
Vendor Advisory: https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=3392284%40photonic&old=3336902%40photonic&sfp_email=&sfph_mail=
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find Photonic Gallery plugin. 4. Click 'Update Now' if available, or manually update to version 3.22+. 5. Verify update completes successfully.
🔧 Temporary Workarounds
Temporary plugin deactivation
allDisable the Photonic Gallery plugin until patched
wp plugin deactivate photonic
Restrict user roles
allTemporarily remove contributor-level access for untrusted users
🧯 If You Can't Patch
- Implement strict content review process for all user-submitted content
- Add web application firewall rules to block XSS payloads in caption fields
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel > Plugins > Installed Plugins for Photonic Gallery version 3.21 or lower
Check Version:
wp plugin list --name=photonic --field=version
Verify Fix Applied:
Confirm Photonic Gallery version is 3.22 or higher in WordPress plugins list
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to wp-admin with script tags in caption parameters
- Multiple failed login attempts followed by successful contributor login
Network Indicators:
- Outbound connections to suspicious domains after viewing gallery pages
- Unexpected JavaScript execution in page responses
SIEM Query:
source="wordpress" AND (uri_path="/wp-admin/*" AND (caption="*<script>*" OR caption="*javascript:*"))