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

- Severity: Medium 4.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-21T19:18:24.000Z
- Modified: 2026-06-17T03:39:55.683Z
- Weaknesses: CWE-79
- Assigned by: WPScan

## 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.

(As written by CVE List.)

## Affected

- Unknown Autoptimize: from 2.7.8 before 2.7.8
- autoptimize autoptimize: before 2.7.8

## Every score

- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://wpscan.com/vulnerability/375bd694-1a30-41af-bbd4-8a8ee54f0dbf> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24378](https://www.cve.org/CVERecord?id=CVE-2021-24378), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24378](https://nvd.nist.gov/vuln/detail/CVE-2021-24378), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24378 · Whole record: https://cve.day/CVE-2021-24378.json · Rebuilt by cve.day 2026-11-25T22:58:02.055Z
