CVE-2025-64217

7.1 HIGH

📋 TL;DR

This vulnerability allows attackers to inject malicious scripts into web pages generated by the Photography WordPress theme. When users visit a specially crafted URL, the script executes in their browser, potentially stealing credentials or performing actions on their behalf. All WordPress sites using Photography theme versions up to and including 7.7.2 are affected.

💻 Affected Systems

Products:
  • ThemeGoods Photography WordPress Theme
Versions: n/a through <= 7.7.2
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Photography theme active. Vulnerability is in theme code, not core WordPress.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers steal administrator session cookies, gain full control of the WordPress site, install backdoors, deface the site, or redirect visitors to malicious sites.

🟠

Likely Case

Attackers steal user session cookies, perform actions as authenticated users, or redirect users to phishing pages.

🟢

If Mitigated

Script execution is blocked by browser security features or web application firewalls, limiting impact to minor data leakage.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Reflected XSS typically requires user interaction (clicking malicious link) but is trivial to exploit once the vulnerable parameter is identified.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: >7.7.2

Vendor Advisory: https://patchstack.com/database/Wordpress/Theme/photography/vulnerability/wordpress-photography-theme-7-7-2-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Appearance > Themes. 3. Check if Photography theme update is available. 4. Update to latest version (>7.7.2). 5. Clear any caching plugins/CDN caches.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Configure WAF to block XSS payloads in URL parameters

Input Validation Filter

all

Add custom WordPress filter to sanitize theme inputs

add_filter('the_content', 'wp_kses_post');

🧯 If You Can't Patch

  • Temporarily switch to default WordPress theme until patch can be applied
  • Implement Content Security Policy (CSP) headers to restrict script execution

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin > Appearance > Themes for Photography theme version. If version is 7.7.2 or lower, you are vulnerable.

Check Version:

wp theme list --field=name,status,version | grep photography

Verify Fix Applied:

After updating, verify theme version shows >7.7.2 in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual long URL parameters containing script tags or JavaScript code
  • Multiple 404 errors with suspicious parameters

Network Indicators:

  • HTTP requests with script tags in query parameters
  • Referrer headers containing malicious JavaScript

SIEM Query:

web.url:*<script* OR web.url:*javascript:*

🔗 References

📤 Share & Export