Autoptimize (WordPress plugin): is it safe?

Short answer: Version 3.1.7 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

WordPress autoptimize has 7 known advisories in the phpwarden feed. Feed 2026.11.23.2, updated 2026-11-23.

7advisories
1critical
0on CISA KEV
0no fix recorded
CVETitleSeverityCVSSAffectedFixed in
CVE-2020-24948The ao_ccss_import AJAX call in Autoptimize Wordpress Plugin 2.7.6 does not ensure that the file provided is a legitimate Zip file, allowinghigh7.2<2.7.72.7.7
CVE-2021-24376The Autoptimize WordPress plugin before 2.7.8 attempts to delete malicious files (such as .php) form the uploaded archive via the "Import Secritical9.8<2.7.82.7.8
CVE-2021-24377The Autoptimize WordPress plugin before 2.7.8 attempts to remove potential malicious files from the extracted archive uploaded via the 'Impohigh8.1<2.7.82.7.8
CVE-2022-2635The Autoptimize WordPress plugin before 3.1.1 does not sanitise and escape some of its settings, which could allow high privilege users suchmedium4.8<3.1.13.1.1
CVE-2021-24332The Autoptimize WordPress plugin before 2.8.4 was missing proper escaping and sanitisation in some of its settings, allowing high privilege medium4.8<2.8.42.8.4
CVE-2021-24378The Autoptimize WordPress plugin before 2.7.8 does not check for malicious files such as .html in the archive uploaded via the 'Import Settimedium4.8<2.7.82.7.8
CVE-2023-2113The Autoptimize WordPress plugin before 3.1.7 does not sanitise and escape the settings imported from a previous export, allowing high privimedium4.8<3.1.73.1.7

Quick answers

Is Autoptimize safe to use?

Version 3.1.7 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Is Autoptimize being actively exploited?

None of its 7 known vulnerabilities are on CISA's Known Exploited Vulnerabilities list today.

How do I check my own site?

Run `phpwarden wordpress /path/to/wordpress`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

Am I affected?

Find out in one command. phpwarden checks your WordPress install against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden wordpress /path/to/wordpress

# or, without Composer
pipx install phpwarden   &&   phpwarden wordpress /path/to/wordpress

Or keep it checked automatically with the GitHub Action or a nightly cron; see WordPress docs.

Install docs   How findings are ranked
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/wordpress-plugin/autoptimize.svg)](https://phpwarden.io/packages/wordpress-plugin/autoptimize)