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-48248 Overview
CVE-2025-48248 is a stored cross-site scripting (XSS) vulnerability in the WPFactory Sitewide Discount for WooCommerce: Apply Discount to All Products plugin for WordPress. The flaw affects all plugin versions up to and including 2.2.1. The plugin fails to properly neutralize user-supplied input before rendering it in web pages generated by WooCommerce storefronts. Authenticated attackers with low-level privileges can inject malicious scripts that execute in the browsers of site visitors and administrators. The issue is tracked under CWE-79 and documented in the Patchstack XSS Vulnerability Advisory.
Critical Impact
Stored XSS allows authenticated attackers to persistently inject JavaScript that executes against administrators and shoppers, enabling session theft and administrative account takeover.
Affected Products
- WPFactory Sitewide Discount for WooCommerce: Apply Discount to All Products (plugin slug global-shop-discount-for-woocommerce)
- All versions up to and including 2.2.1
- WordPress sites running WooCommerce with the vulnerable plugin installed
Discovery Timeline
- 2025-05-19 - CVE-2025-48248 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-48248
Vulnerability Analysis
The vulnerability is a stored cross-site scripting flaw classified under CWE-79. The plugin accepts input from an authenticated user and persists it in the WordPress database. When the stored value is later rendered on a page, the plugin outputs it without proper HTML encoding or sanitization. Any JavaScript embedded in the stored value executes in the context of visitors who view the affected page.
Stored XSS in a WooCommerce discount plugin is particularly impactful because the injected payload reaches both shoppers and administrators who view discount configuration pages. Attackers can hijack administrator sessions, perform actions on behalf of logged-in users, exfiltrate order data, or redirect checkout flows. Exploitation requires an authenticated low-privilege account and user interaction to trigger the payload, as reflected in the attack metrics.
Root Cause
The root cause is improper neutralization of input during web page generation. The plugin stores attacker-controlled strings and later echoes them into HTML output without applying WordPress sanitization helpers such as esc_html(), esc_attr(), or wp_kses(). The scope is marked as changed because the injected script executes in the browsers of other users, crossing the trust boundary from the attacker's authenticated session to victim sessions.
Attack Vector
The attack vector is network-based over HTTP(S) to the WordPress administration or storefront interface. An attacker with contributor-level or higher credentials submits a crafted payload through a plugin input field. The payload is stored in the database. When an administrator or shopper visits the page that renders the discount data, the browser executes the injected JavaScript in the context of the WordPress site origin.
The vulnerability is described in prose only; see the Patchstack XSS Vulnerability Advisory for technical specifics.
Detection Methods for CVE-2025-48248
Indicators of Compromise
- Unexpected <script> tags, onerror, onload, or javascript: strings stored in WooCommerce discount-related options or post meta.
- Outbound requests from administrator browsers to unfamiliar domains when loading WooCommerce discount pages.
- New or modified WordPress administrator accounts created shortly after an authenticated low-privilege user accessed plugin settings.
- Session cookies appearing in referrer logs for third-party domains originating from WooCommerce pages.
Detection Strategies
- Audit WordPress database tables (wp_options, wp_postmeta) for entries related to global-shop-discount-for-woocommerce containing HTML or JavaScript syntax.
- Deploy a web application firewall rule to flag HTTP POST requests to plugin endpoints containing script-tag payloads or encoded JavaScript.
- Monitor browser Content Security Policy (CSP) violation reports for inline-script execution on administrator and storefront pages.
- Review WordPress audit logs for low-privilege account activity touching the vulnerable plugin's configuration screens.
Monitoring Recommendations
- Enable WordPress security logging plugins to record all plugin setting changes with user attribution and payload content.
- Forward web server access logs to a centralized SIEM and alert on anomalous payloads targeting WooCommerce admin endpoints.
- Track administrator session anomalies such as unexpected geographic origin or impossible travel following discount-page views.
How to Mitigate CVE-2025-48248
Immediate Actions Required
- Update the Sitewide Discount for WooCommerce plugin to a version later than 2.2.1 once released by WPFactory, or disable the plugin until a patch is available.
- Review all accounts with contributor-level or higher privileges and remove accounts that are not required for business operations.
- Rotate credentials and invalidate active sessions for WordPress administrators who may have viewed poisoned discount pages.
- Inspect the WordPress database for stored payloads and remove any malicious script content from plugin-related rows.
Patch Information
As of the NVD last-modified date (2026-06-17), the advisory indicates the vulnerability affects versions up to and including 2.2.1. Administrators should consult the Patchstack advisory and the WordPress plugin repository for the latest fixed release and apply it immediately.
Workarounds
- Deactivate and delete the global-shop-discount-for-woocommerce plugin until a patched release is installed.
- Restrict access to WordPress administration using IP allowlisting at the web server or firewall layer.
- Enforce a strict Content Security Policy that disallows inline scripts and limits script sources to trusted origins.
- Apply a web application firewall ruleset that blocks XSS payloads targeting WordPress plugin configuration endpoints.
# Disable the vulnerable plugin via WP-CLI
wp plugin deactivate global-shop-discount-for-woocommerce
wp plugin delete global-shop-discount-for-woocommerce
# Search the database for suspicious stored payloads
wp db query "SELECT option_name, option_value FROM wp_options \
WHERE option_value LIKE '%<script%' \
OR option_value LIKE '%onerror=%' \
OR option_value LIKE '%javascript:%';"
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

