Skip to main content
Vulnerability Database/CVE-2024-10049

CVE-2024-10049: Edit WooCommerce Templates XSS Vulnerability

CVE-2024-10049 is a reflected XSS flaw in Edit WooCommerce Templates plugin for WordPress that lets unauthenticated attackers inject malicious scripts. This article covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-10049 Overview

CVE-2024-10049 is a reflected Cross-Site Scripting (XSS) vulnerability in the Edit WooCommerce Templates plugin for WordPress. The flaw affects all versions up to and including 1.1.2. It stems from insufficient input sanitization and output escaping on the page parameter processed by the plugin's admin list table component.

Unauthenticated attackers can inject arbitrary web scripts into pages. Successful exploitation requires user interaction, such as clicking a crafted link. The injected script executes in the victim's browser session under the WordPress site's origin, enabling session theft or administrative actions on behalf of authenticated users.

Critical Impact

Unauthenticated attackers can execute arbitrary JavaScript in the browser of a victim who clicks a malicious link, potentially hijacking administrator sessions on affected WordPress sites.

Affected Products

  • Edit WooCommerce Templates plugin for WordPress
  • All versions up to and including 1.1.2
  • WordPress sites running the plugin alongside WooCommerce

Discovery Timeline

  • 2024-10-18 - CVE-2024-10049 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-10049

Vulnerability Analysis

The vulnerability is a reflected XSS issue classified under CWE-79. The plugin reads the page query parameter from the request and reflects it back into the rendered HTML of the admin interface without proper sanitization or escaping.

Because the attack vector is network-based and requires no authentication, any visitor who follows a crafted link to the WordPress site can trigger script execution. The scope change in the impact profile reflects that executed scripts run within the WordPress admin origin, which can affect resources beyond the attacker's initial control.

The reflected scripts execute with the privileges of the targeted user. If a site administrator clicks the crafted link while authenticated, the injected code can create new admin users, modify plugin settings, or exfiltrate authentication cookies.

Root Cause

The root cause resides in the plugin's admin list table rendering code at includes/list-table-theme-templates.php. The page request parameter is incorporated into generated HTML output without applying WordPress escaping functions such as esc_attr() or esc_html(). Reference the plugin source at line 87 for the vulnerable code path.

Attack Vector

An attacker crafts a URL targeting a vulnerable WordPress admin page and embeds JavaScript payload content in the page query parameter. The attacker then delivers the link through phishing emails, social media, or malicious advertisements. When a logged-in administrator or editor clicks the link, the browser renders the page and executes the attacker's script in the context of the WordPress site.

See the Wordfence Vulnerability Report for additional technical context. No verified public exploit code is available for this issue at the time of publication.

Detection Methods for CVE-2024-10049

Indicators of Compromise

  • Web server access logs containing requests to WordPress admin pages with suspicious page parameter values that include <script>, javascript:, or encoded script content
  • Unexpected administrator account creation or privilege changes following admin user visits to external links
  • Outbound requests from administrator browsers to unknown domains immediately after accessing the WordPress admin dashboard

Detection Strategies

  • Review HTTP request logs for the wp-admin directory with anomalous page parameters containing HTML tags or JavaScript protocol handlers
  • Deploy a web application firewall (WAF) rule set that identifies reflected XSS patterns in query strings targeting WordPress admin endpoints
  • Monitor for the installed version of the Edit WooCommerce Templates plugin using WordPress inventory tooling and flag versions at or below 1.1.2

Monitoring Recommendations

  • Enable WordPress audit logging to track administrator actions and correlate them with inbound HTTP requests
  • Alert on new administrator user creation events outside of change windows
  • Track plugin version drift across WordPress fleets to identify unpatched installations

How to Mitigate CVE-2024-10049

Immediate Actions Required

  • Identify all WordPress installations running the Edit WooCommerce Templates plugin at version 1.1.2 or earlier
  • Update the plugin to a patched version if available, or deactivate and remove the plugin until a fix is published
  • Instruct administrators to avoid clicking untrusted links while authenticated to the WordPress admin console

Patch Information

As of the last NVD modification date, no fixed version has been enumerated in the vendor references. Monitor the WordPress plugin repository and the Wordfence advisory for updates. Until a verified patch is released, treat the plugin as vulnerable and apply compensating controls.

Workarounds

  • Deactivate the Edit WooCommerce Templates plugin until a vendor patch is confirmed
  • Deploy a WAF rule to strip or block HTML and JavaScript content in the page query parameter for wp-admin requests
  • Restrict access to the WordPress admin interface by IP allowlist or VPN to reduce exposure to unauthenticated attackers
  • Enforce strict Content Security Policy (CSP) headers that disallow inline scripts in the admin context
bash
# Example nginx configuration to block script content in the 'page' parameter
location ~* /wp-admin/ {
    if ($arg_page ~* "(<script|javascript:|onerror=|onload=)") {
        return 403;
    }
}

# Example Content Security Policy header for WordPress admin
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none';" always;

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.