CVE-2025-12691

6.4 MEDIUM

📋 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

Products:
  • Photonic Gallery & Lightbox for Flickr, SmugMug & Others WordPress plugin
Versions: All versions up to and including 3.21
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the plugin enabled. Contributor-level access or higher needed for exploitation.

⚠️ 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.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. 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.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

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

all

Disable the Photonic Gallery plugin until patched

wp plugin deactivate photonic

Restrict user roles

all

Temporarily 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:*"))

🔗 References

📤 Share & Export