Skip to main content
Vulnerability Database/CVE-2025-60158

CVE-2025-60158: WooCommerce Nota Fiscal Eletrônica XSS Flaw

CVE-2025-60158 is a stored XSS vulnerability in Nota Fiscal Eletrônica WooCommerce plugin that enables attackers to inject malicious scripts. This article covers the technical details, affected versions, and mitigation strategies.

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-2025-60158 Overview

CVE-2025-60158 is a stored Cross-Site Scripting (XSS) vulnerability in the webmaniabr Nota Fiscal Eletrônica WooCommerce plugin for WordPress. The flaw affects all plugin versions up to and including 3.4.0.9. An authenticated attacker with high privileges can inject malicious scripts that persist within the application and execute in the browsers of other users who view affected pages. The vulnerability is tracked under CWE-79 for improper neutralization of input during web page generation.

Critical Impact

Stored script payloads execute in authenticated sessions, enabling session abuse, administrative action on behalf of victims, and content modification across the WordPress admin and storefront.

Affected Products

  • WordPress plugin: webmaniabr Nota Fiscal Eletrônica WooCommerce (nota-fiscal-eletronica-woocommerce)
  • All versions from n/a through 3.4.0.9
  • WooCommerce-based WordPress sites using this plugin for Brazilian electronic invoicing

Discovery Timeline

  • 2025-09-26 - CVE-2025-60158 published to the National Vulnerability Database
  • 2026-10-11 - Last updated in NVD database

Technical Details for CVE-2025-60158

Vulnerability Analysis

The plugin fails to properly neutralize user-controlled input before rendering it in HTML output. An authenticated user with elevated privileges can submit crafted input containing HTML or JavaScript. The plugin stores this input and later renders it without adequate output encoding or sanitization. When another authenticated user loads a page containing the stored payload, the script executes in that user's browser context. Scope is changed because the executed script can affect resources beyond the vulnerable component, including the WordPress admin interface and storefront.

Root Cause

The root cause is missing or insufficient output escaping in the plugin's rendering paths. Input accepted through plugin forms or settings is persisted to the database and reflected into HTML responses without the WordPress escaping functions appropriate to each context, such as esc_html(), esc_attr(), or wp_kses(). This matches the pattern described in CWE-79.

Attack Vector

Exploitation requires network access, high privileges on the target WordPress site, and user interaction from a victim who loads the affected page. The attacker stores a JavaScript payload through a plugin feature exposed to privileged accounts. The payload fires when a legitimate user, often an administrator or shop manager, views the stored content. See the PatchStack XSS Vulnerability Advisory for additional detail. No public exploit code or proof-of-concept has been published at the time of writing.

Detection Methods for CVE-2025-60158

Indicators of Compromise

  • Unexpected <script> tags, onerror=, onload=, or javascript: URIs stored in plugin-managed database tables or WooCommerce order metadata.
  • Admin or shop-manager accounts loading plugin pages followed by anomalous outbound requests to unknown hosts.
  • New or modified WordPress users, roles, or options immediately after a privileged user viewed a plugin-generated page.

Detection Strategies

  • Review WordPress wp_options, wp_postmeta, and plugin-specific tables for HTML or JavaScript content in fields expected to contain plain text.
  • Enable a Content Security Policy in report-only mode to surface inline script execution on /wp-admin pages that render plugin output.
  • Correlate authenticated admin sessions with browser-initiated requests to third-party domains using web proxy or EDR telemetry.

Monitoring Recommendations

  • Monitor plugin update status and alert when sites run nota-fiscal-eletronica-woocommerce at version 3.4.0.9 or earlier.
  • Log and review changes to high-privilege WordPress accounts, API keys, and site options.
  • Capture outbound HTTP requests from admin browsers for review against known malicious infrastructure.

How to Mitigate CVE-2025-60158

Immediate Actions Required

  • Identify all WordPress sites running the Nota Fiscal Eletrônica WooCommerce plugin and inventory installed versions.
  • Upgrade the plugin to a version later than 3.4.0.9 as soon as the vendor publishes a fix.
  • Audit privileged WordPress accounts and remove unused administrator or shop-manager roles that could be abused to inject payloads.

Patch Information

The vulnerability affects versions through 3.4.0.9. Site operators should consult the PatchStack advisory and the plugin page on WordPress.org for the current patched release. Apply the fixed version across all environments and verify the installed version after deployment.

Workarounds

  • Restrict access to plugin configuration and invoice management features to the smallest set of trusted administrators.
  • Deploy a Web Application Firewall rule that blocks script tags and common XSS payload patterns submitted to plugin endpoints.
  • Enforce a strict Content Security Policy on /wp-admin to limit inline script execution if the plugin cannot be updated immediately.
  • Disable the plugin until a patched version is installed if invoicing functionality is not actively required.

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.