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-97328 Overview
CVE-2026-97328 is a stored Cross-Site Scripting (XSS) vulnerability in the WebP Express WordPress plugin before version 0.25.16. The plugin's bundled HTML parser fails to escape values that it re-emits into element attributes when a non-default image delivery mode is enabled. Unauthenticated attackers can submit crafted content that is stored by the application and later executed as JavaScript in the browser of any user viewing an affected page, including administrators. Successful exploitation can lead to session hijacking, administrative account takeover, and arbitrary actions performed in the context of the victim's WordPress session [CWE-79].
Critical Impact
Unauthenticated attackers can inject persistent JavaScript that executes in administrator browsers, enabling full WordPress site compromise.
Affected Products
- WebP Express WordPress plugin versions prior to 0.25.16
- WordPress sites running WebP Express with a non-default image delivery mode enabled
- Any WordPress environment where the vulnerable plugin processes untrusted content
Discovery Timeline
- 2026-10-22 - CVE-2026-97328 published to the National Vulnerability Database (NVD)
- 2026-10-22 - Last updated in the NVD database
Technical Details for CVE-2026-97328
Vulnerability Analysis
The vulnerability resides in the HTML parser bundled with WebP Express. When a non-default image delivery mode is configured, the plugin rewrites page HTML to swap or augment image references. During this re-emission, the parser does not apply output encoding to values placed inside element attributes. An attacker can submit input containing attribute-breaking characters such as double quotes or angle brackets. The input is stored by WordPress through normal content submission paths and later rendered by the plugin. Because the issue occurs during server-side rewriting, the malicious payload is delivered to every visitor who loads the affected page.
Root Cause
The root cause is missing output escaping in the plugin's HTML parser when re-emitting attribute values [CWE-79]. The parser treats previously parsed attribute content as safe, bypassing WordPress's standard escaping functions such as esc_attr(). Because the sink is an HTML attribute context, any payload containing unescaped quotes or event-handler syntax breaks out of the attribute boundary and executes as script.
Attack Vector
The attack vector is network-based and requires no authentication. An unauthenticated user submits content, for example through a comment, form field, or other input stored on the site, containing a crafted attribute-breaking payload. User interaction is required to trigger execution: an administrator or other visitor must load a page where the plugin re-emits the stored content. Once the page renders, the injected JavaScript executes in the victim's browser under the site's origin, enabling cookie theft, forced administrative actions through the WordPress REST API, or installation of malicious plugins. The vulnerability manifests in the plugin's HTML parser attribute-emission path. See the WPScan Vulnerability Report for additional technical details.
Detection Methods for CVE-2026-97328
Indicators of Compromise
- Unexpected <script> tags, on* event handlers, or javascript: URIs appearing in rendered HTML served from pages processed by WebP Express.
- Outbound HTTP requests from administrator browsers to unfamiliar domains shortly after loading WordPress admin or front-end pages.
- New administrator accounts, modified plugins, or unauthorized changes to WordPress options tables with no corresponding audit trail.
Detection Strategies
- Inventory WordPress installations and flag any running WebP Express at a version earlier than 0.25.16.
- Inspect stored content fields and post metadata for attribute-breaking sequences such as unescaped double quotes followed by event handler names.
- Review web server access logs for POST requests containing XSS payload patterns targeting comment, contact form, or content submission endpoints.
Monitoring Recommendations
- Enable Content Security Policy (CSP) reporting to capture inline-script violations originating from affected pages.
- Monitor administrator session activity for anomalous REST API calls, user-role changes, and plugin or theme file modifications.
- Forward WordPress and web server logs to a centralized analytics platform to correlate payload submission with later administrator page views.
How to Mitigate CVE-2026-97328
Immediate Actions Required
- Upgrade the WebP Express plugin to version 0.25.16 or later on all affected WordPress sites.
- If upgrading is not immediately possible, revert the plugin to the default image delivery mode to remove the vulnerable code path.
- Audit WordPress user accounts, scheduled tasks, and installed plugins for signs of compromise following patching.
Patch Information
The vendor addressed CVE-2026-97328 in WebP Express version 0.25.16 by properly escaping attribute values re-emitted by the bundled HTML parser. Administrators should update through the WordPress plugin manager or by replacing plugin files directly. Refer to the WPScan Vulnerability Report for the authoritative advisory.
Workarounds
- Switch WebP Express back to its default image delivery mode until the plugin can be updated.
- Deploy a web application firewall (WAF) rule to block requests containing attribute-breaking payloads targeting content submission endpoints.
- Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins.
# Configuration example: upgrade WebP Express via WP-CLI
wp plugin update webp-express --version=0.25.16
wp plugin list --name=webp-express --fields=name,status,version
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

