CVE-2021-24332
WordPress vulnerability analysis and mitigation

Overview

The Autoptimize WordPress plugin versions before 2.8.4 contained a stored Cross-Site Scripting (XSS) vulnerability identified as CVE-2021-24332. The vulnerability was discovered and publicly disclosed on May 7, 2021. The issue affected the plugin's settings functionality, specifically impacting WordPress installations using the vulnerable versions of Autoptimize (WPScan).

Technical details

The vulnerability stemmed from improper escaping and sanitization in the plugin's settings, particularly in the API Key settings and CSS configuration areas. The issue was classified as CWE-79 (Cross-Site Scripting) with a CVSS score of 6.6 (medium severity). The vulnerability allowed high-privilege users to inject XSS payloads into specific plugin settings, creating stored Cross-Site Scripting issues that would persist in the application (WPScan).

Impact

The vulnerability could allow authenticated users with high privileges to store malicious JavaScript code in the plugin settings. When other users accessed the affected admin pages, the stored XSS payload would execute in their browsers, potentially leading to unauthorized actions, data theft, or further compromise of the WordPress installation (WPScan).

Exploitability

The vulnerability required an authenticated user with high privileges to exploit. Proof of concept exploits demonstrated that the vulnerability could be triggered through the plugin's settings page at '/wp-admin/options-general.php?page=ao_critcss' by injecting malicious payloads into the API Key settings and CSS configuration options (WPScan).

Mitigation and workarounds

The vulnerability was patched in Autoptimize version 2.8.4. Website administrators running affected versions should upgrade to version 2.8.4 or later to mitigate this security issue (WPScan).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-92541HIGH7.2
  • import-users-from-csv-with-meta
NoYesSep 20, 2026
CVE-2026-92540HIGH7.2
  • import-users-from-csv-with-meta
NoYesSep 20, 2026
CVE-2026-86785MEDIUM5.3
  • woo-to-facebook-shop
NoNoSep 20, 2026
CVE-2026-92965LOW3.7
  • tiktok-for-business
NoYesSep 20, 2026
CVE-2026-92423LOW2.7
  • meow-gallery
NoYesSep 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management