LiveActive security incident?Get immediate response
CVE Record

CVE-2021-24378: Autoptimize < 2.7.8 - Authenticated Stored XSS via File Upload

The Autoptimize WordPress plugin before 2.7.8 does not check for malicious files such as .html in the archive uploaded via the 'Import Settings' feature. As a result, it is possible for a high privilege user to upload a malicious file containing JavaScript code inside an archive which will execute when a victim visits index.html inside the plugin directory.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2021-24378 affects the Autoptimize WordPress plugin before 2.7.8. A highly privileged user could import a crafted settings archive that leaves JavaScript-bearing HTML in the plugin directory. If another user visits that file, the script may run in their browser.

Executive priority

Treat this as a targeted WordPress plugin hygiene issue, not an emergency based on the supplied evidence. Prioritize updates on public or business-critical sites, especially where admin access is broadly delegated or account compromise is a concern.

Technical view

The issue is authenticated stored cross-site scripting, mapped to CWE-79. The vulnerable Import Settings feature did not sufficiently reject malicious archive contents, including .html files. The provided sources describe execution when a victim visits index.html inside the plugin directory.

Likely exposure

Exposure is limited to WordPress sites running Autoptimize versions before 2.7.8, with an account able to use the plugin's Import Settings feature. Sites without Autoptimize, or running 2.7.8 or later, are not indicated as affected by the supplied sources.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation evidence. Abuse requires authenticated high-privilege access first, then victim interaction with the uploaded file location. That lowers broad internet-scale risk but still matters if admin accounts are shared, compromised, or poorly controlled.

Researcher notes

The public evidence identifies stored XSS through archive import validation weakness. No CVSS vector, CPE, exploit-in-the-wild evidence, or detailed vendor remediation beyond the pre-2.7.8 affected range is included in the bundle.

Mitigation direction

  • Upgrade Autoptimize to version 2.7.8 or later.
  • Review vendor or WPScan guidance for any additional cleanup instructions.
  • Restrict WordPress administrator and plugin settings access to trusted users.
  • Remove unexpected imported archive contents or HTML files from plugin directories.
  • Monitor administrator account activity for suspicious settings imports.

Validation and detection

  • Inventory WordPress sites and confirm the installed Autoptimize version.
  • Check whether any site runs Autoptimize before 2.7.8.
  • Verify only trusted roles can access Autoptimize Import Settings.
  • Review web logs for unusual access to files inside the plugin directory.
  • Review admin activity logs for unexpected settings import events.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-24378 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
UnknownAutoptimize2.7.8Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.