Skip to main content
Vulnerability Database/CVE-2026-14995

CVE-2026-14995: Autoptimize WordPress Plugin XSS Vulnerability

CVE-2026-14995 is a stored XSS vulnerability in the Autoptimize WordPress plugin that allows unauthenticated attackers to inject malicious scripts. This article covers technical details, affected versions, impact, 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-2026-14995 Overview

CVE-2026-14995 is a Stored Cross-Site Scripting (XSS) vulnerability in the Autoptimize plugin for WordPress, affecting all versions up to and including 3.1.15.1. The flaw stems from insufficient input sanitization and output escaping of the REQUEST_URI path when the plugin's Critical CSS feature processes frontend requests. Unauthenticated attackers can inject arbitrary JavaScript that executes when any user, including administrators, views the resulting queue entries in the plugin's admin interface. The weakness is tracked under CWE-79.

Critical Impact

Unauthenticated attackers can inject persistent JavaScript into the WordPress admin queue interface, enabling session theft, administrative account takeover, or arbitrary admin actions when the Critical CSS feature is active with a valid API key.

Affected Products

  • Autoptimize WordPress plugin versions up to and including 3.1.15.1
  • WordPress installations with the Critical CSS feature enabled
  • Sites with a valid Critical CSS API key configured

Discovery Timeline

  • 2026-10-01 - CVE-2026-14995 published to the National Vulnerability Database (NVD)
  • 2026-10-01 - Last updated in NVD database

Technical Details for CVE-2026-14995

Vulnerability Analysis

The Autoptimize plugin provides page-speed optimization for WordPress, including a Critical CSS feature that enqueues URLs for processing by a remote service. When unauthenticated frontend requests trigger ao_ccss_enqueue(), the plugin captures the current REQUEST_URI and stores it as part of a queue entry. The stored value is later rendered in the plugin's administrative settings queue page without proper escaping, resulting in persistent script execution in an authenticated administrator's browser.

Exploitation is bounded by a precondition: the Critical CSS feature must be active and configured with a valid API key. When that precondition is met, no authentication is required to seed malicious queue entries from the public-facing site.

Root Cause

The root cause is missing input sanitization on the server-side capture of REQUEST_URI in autoptimizeCriticalCSSEnqueue.php and missing output escaping where queue entries are rendered in admin_settings_queue.js.php and admin_settings_queue.php. The plugin trusts the request path as a benign identifier, treating attacker-controlled data as safe for later HTML and JavaScript contexts. Relevant lines are documented in the vendor's source references, including autoptimizeCriticalCSSEnqueue.php line 218 and admin_settings_queue.js.php line 125.

Attack Vector

An unauthenticated attacker issues an HTTP request to the WordPress site with a crafted path component containing JavaScript payload characters. The request path propagates into the Critical CSS queue through ao_ccss_enqueue() and is persisted. When an administrator opens the Autoptimize Critical CSS settings page, the stored payload is rendered without escaping, executing in the admin session context. Because the attack crosses the public-to-admin trust boundary, the CVSS scope is marked as changed.

No verified public exploit code is available at this time. See the Wordfence advisory and the plugin changeset for additional technical detail.

Detection Methods for CVE-2026-14995

Indicators of Compromise

  • HTTP access-log entries containing unusual characters in the request path, including <, >, ", ', or URL-encoded equivalents such as %3Cscript%3E.
  • New or unexpected rows inserted into the Autoptimize Critical CSS queue referencing non-standard URIs.
  • Administrative sessions exhibiting unexplained outbound requests shortly after loading the Autoptimize Critical CSS settings page.
  • Modification of WordPress user accounts, plugin files, or option values immediately following an admin visit to the Critical CSS queue view.

Detection Strategies

  • Inspect the Autoptimize Critical CSS queue entries for stored URI values containing HTML or script syntax.
  • Hunt web-server logs for requests whose path contains script tags, event handlers (onerror=, onload=), or JavaScript URI schemes.
  • Deploy web application firewall rules that flag or block request paths containing XSS payload patterns targeting the WordPress frontend.

Monitoring Recommendations

  • Enable WordPress audit logging to track administrator sessions that view plugin settings pages.
  • Alert on changes to WordPress user roles, option tables, or installed plugins that follow suspicious frontend request patterns.
  • Monitor outbound network connections from administrator browsers for callbacks to attacker-controlled infrastructure.

How to Mitigate CVE-2026-14995

Immediate Actions Required

  • Upgrade the Autoptimize plugin to the version released after 3.1.15.1 that contains the fix referenced in the plugin changeset.
  • If an upgrade cannot be applied immediately, disable the Critical CSS feature or remove the configured Critical CSS API key to break the exploitation precondition.
  • Audit existing Critical CSS queue entries and purge any records containing script syntax or unexpected URI content.
  • Rotate administrator credentials and invalidate active WordPress sessions if suspicious queue entries are found.

Patch Information

The vendor addressed the issue in a release following 3.1.15.1. Review the official WordPress plugin changeset and the Wordfence vulnerability record for the fixed version and patch details. Apply the update across all WordPress sites running Autoptimize.

Workarounds

  • Deactivate the Autoptimize plugin until patching is possible.
  • Disable the Critical CSS feature within the Autoptimize settings to prevent ao_ccss_enqueue() from processing unauthenticated frontend requests.
  • Deploy a web application firewall rule that blocks request paths containing HTML or JavaScript metacharacters before they reach WordPress.
  • Restrict access to the WordPress admin interface by IP allowlist to reduce the chance of administrator browsers rendering untrusted queue data.
bash
# Example WordPress CLI commands to disable Autoptimize until patched
wp plugin deactivate autoptimize

# Or remove the Critical CSS API key option to break the exploitation precondition
wp option delete autoptimize_ccss_key
wp option delete autoptimize_ccss_keyst

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.