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-2026-97338 Overview
CVE-2026-97338 is a stored Cross-Site Scripting (XSS) vulnerability in the WordPress Download Manager plugin affecting all versions up to and including 3.3.70. The flaw resides in the Display Name field exposed through the [wpdm_edit_profile] shortcode. Insufficient input sanitization and output escaping allow authenticated users with Subscriber-level access or above to inject arbitrary JavaScript using a multiply entity-encoded payload. The injected script executes in the browser of any visitor who loads a page rendering the attacker-controlled display name. The vulnerability is tracked under CWE-79.
Critical Impact
Authenticated Subscriber-level attackers can store JavaScript that executes against site visitors and administrators, enabling session theft, admin account takeover, and malicious redirection.
Affected Products
- WordPress Download Manager plugin versions up to and including 3.3.70
- WordPress sites exposing the [wpdm_edit_profile] shortcode on front-end pages accessible to Subscriber-level users
- Any WordPress installation permitting self-service subscriber registration with the vulnerable plugin active
Discovery Timeline
- 2026-10-02 - CVE-2026-97338 published to NVD
- 2026-10-03 - Last updated in NVD database
Technical Details for CVE-2026-97338
Vulnerability Analysis
The Download Manager plugin renders user-controlled profile data in administrative and front-end views without sufficient context-aware escaping. When a Subscriber submits a crafted Display Name via the [wpdm_edit_profile] shortcode form, the value is stored in the WordPress user metadata. Later page requests render the stored value into HTML output locations where the escaping routine fails to neutralize multiply entity-encoded payloads. The browser decodes the payload during rendering and executes the resulting JavaScript in the context of the hosting site.
Because stored XSS executes under the origin of the WordPress site, an attacker can read session cookies not marked HttpOnly, submit authenticated requests on behalf of the viewer, and pivot into administrator account compromise if a privileged user views a tainted page.
Root Cause
The sanitization pipeline for the Display Name input strips a single pass of HTML entities but does not account for nested or layered entity encoding. Downstream rendering in files such as src/Admin/views/stats/history.php and src/User/EditProfile.php emits the stored value without applying esc_html() or an equivalent output-encoding function appropriate for the HTML context. The result is a classic failure to combine strict input validation with context-specific output escaping.
Attack Vector
Exploitation requires network access to a WordPress site running the vulnerable plugin, a Subscriber-level account, and the presence of the [wpdm_edit_profile] shortcode on a reachable front-end page. The attacker registers or authenticates as a Subscriber, navigates to the profile editor page, and submits a Display Name containing a multiply entity-encoded JavaScript payload. The payload is stored and later rendered to administrators viewing user statistics pages or to any visitor to pages that display the user's name.
The vulnerability mechanism is described in the Wordfence Vulnerability Analysis and the vendor fix is visible in the WordPress Download Manager Changeset.
Detection Methods for CVE-2026-97338
Indicators of Compromise
- WordPress user records with Display Name fields containing HTML entity sequences such as <script, <, or nested & constructs
- Unexpected outbound requests from administrator browsers to attacker-controlled domains shortly after viewing the Download Manager stats or user profile pages
- New administrator accounts or privilege changes initiated from authenticated sessions that originated on pages rendering user profiles
Detection Strategies
- Query the wp_usermeta table for nickname and display_name values containing <, >, script, onerror, or encoded variants, filtering for Subscriber-level users
- Review web server access logs for POST requests to pages hosting the [wpdm_edit_profile] shortcode followed by GET requests from administrative IPs
- Monitor WordPress audit logs for user profile updates by low-privilege accounts that precede anomalous administrative activity
Monitoring Recommendations
- Enable Content Security Policy (CSP) reporting to surface inline script execution from unexpected contexts within the WordPress origin
- Alert on administrator sessions that generate outbound requests to newly observed external domains after accessing plugin administrative views
- Track plugin version inventory across WordPress estates and flag any instance still running Download Manager 3.3.70 or earlier
How to Mitigate CVE-2026-97338
Immediate Actions Required
- Update the WordPress Download Manager plugin to a version released after 3.3.70 that contains the fix referenced in the vendor changeset
- Audit all existing user Display Name and nickname values for encoded script payloads and sanitize or reset affected entries
- Temporarily remove the [wpdm_edit_profile] shortcode from front-end pages if patching cannot be completed immediately
Patch Information
The vendor addressed the issue in the commit tracked by the WordPress Download Manager Changeset. The fix adds proper output escaping at the affected rendering locations, including src/Admin/views/stats/history.php and src/User/EditProfile.php. Site administrators should install the fixed release through the WordPress plugin updater and verify the installed version post-upgrade.
Workarounds
- Disable new user registration or restrict the Subscriber role from accessing pages that render the [wpdm_edit_profile] shortcode
- Deploy a Web Application Firewall (WAF) rule to block form submissions containing multiply entity-encoded payloads targeting profile endpoints
- Enforce a strict Content Security Policy that disallows inline scripts to reduce the impact of stored XSS execution
# Example WP-CLI command to list suspicious display names for review
wp user list --fields=ID,user_login,display_name --format=csv \
| grep -iE '&#|script|onerror|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

