Autoptimize: known security problems
15 known security problems reported for this WordPress plugin, with the affected versions, the fix and what to do.
Updated
In short
There are 15 known security problems on this page. Each one has a fixed version. Updating to version 3.1.16 or newer covers every fixed problem listed here.
Based on public reports. Check the plugin’s changelog. Watchfox AI may be wrong.
Get an email when your site is affected: install Watchfox AI (free)
A stranger could plant harmful code that runs for your visitors or admins (up to and including 3.1.15.1)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Up to and including 3.1.15.1
- Fixed in
- 3.1.16
- What to do
- If your site has an affected version, update Autoptimize to version 3.1.16 or newer.
- Official ID
- CVE-2026-78471
- Report title
- Autoptimize <= 3.1.15.1 - Unauthenticated Stored Cross-Site Scripting via Comment Author Name
- First reported
- Sources
- Wordfence, seen
A stranger could plant harmful code that runs for your visitors or admins (up to and including 3.1.15.1) (2)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Up to and including 3.1.15.1
- Fixed in
- 3.1.16
- What to do
- If your site has an affected version, update Autoptimize to version 3.1.16 or newer.
- Official ID
- CVE-2026-14995
- Report title
- Autoptimize <= 3.1.15.1 - Unauthenticated Stored Cross-Site Scripting via REQUEST_URI Path
- First reported
- Sources
- Wordfence, seen
A stranger could plant harmful code that runs for your visitors or admins (before 3.1.15)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Before 3.1.15
- Fixed in
- 3.1.15
- What to do
- If your site has an affected version, update Autoptimize to version 3.1.15 or newer.
- Official ID
- CVE-2026-3220
- Report title
- Multiple Plugins <= Multiple Versions - Unauthenticated Stored Cross-Site Scripting
- First reported
- Sources
- Wordfence, seen
Someone with a contributor account on your site could plant harmful code that runs for your visitors or admins (up to and including 3.1.14)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Up to and including 3.1.14
- Fixed in
- 3.1.15
- What to do
- If your site has an affected version, update Autoptimize to version 3.1.15 or newer.
- Official ID
- CVE-2026-2352
- Report title
- Autoptimize <= 3.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'ao_post_preload' Meta Value
- First reported
- Sources
- Wordfence, seen
Someone with a contributor account on your site could plant harmful code that runs for your visitors or admins (up to and including 3.1.14) (2)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Up to and including 3.1.14
- Fixed in
- 3.1.15
- What to do
- If your site has an affected version, update Autoptimize to version 3.1.15 or newer.
- Official ID
- CVE-2026-2430
- Report title
- Autoptimize <= 3.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lazy-loaded Image Attributes
- First reported
- Sources
- Wordfence, seen
Someone with a contributor account on your site could plant harmful code that runs for your visitors or admins (up to and including 3.1.13)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Up to and including 3.1.13
- Fixed in
- 3.1.14
- What to do
- If your site has an affected version, update Autoptimize to version 3.1.14 or newer.
- Official ID
- CVE-2025-13401
- Report title
- Autoptimize <= 3.1.13 - Authenticated (Contributor+) Stored Cross-Site Scripting
- First reported
- Sources
- Wordfence, seen
Someone could plant harmful code that runs for your visitors or admins (up to and including 3.1.6)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Up to and including 3.1.6
- Fixed in
- 3.1.7
- What to do
- If your site has an affected version, update Autoptimize to version 3.1.7 or newer.
- Official ID
- CVE-2023-2113
- Report title
- Autoptimize <= 3.1.6 - Authenticated (Admin+) Stored Cross-Site Scripting via Critical CSS Rules
- First reported
- Sources
- Wordfence, seen
Someone could use it to harm your site
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Up to and including 3.0.4
- Fixed in
- 3.1.0
- What to do
- If your site has an affected version, update Autoptimize to version 3.1.0 or newer.
- Official ID
- CVE-2022-4057
- Report title
- Autoptimize <= 3.0.4 - Sensitive Information Disclosure
- First reported
- Sources
- Wordfence, seen
Someone could plant harmful code that runs for your visitors or admins (up to and including 3.1.0)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Up to and including 3.1.0
- Fixed in
- 3.1.1
- What to do
- If your site has an affected version, update Autoptimize to version 3.1.1 or newer.
- Official ID
- CVE-2022-2635
- Report title
- Autoptimize <= 3.1.0 - Authenticated (Admin+) Stored Cross-Site Scripting via Critical CSS Settings
- First reported
- Sources
- Wordfence, seen
Someone could plant harmful code that runs for your visitors or admins (before 2.8.4)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Before 2.8.4
- Fixed in
- 2.8.4
- What to do
- If your site has an affected version, update Autoptimize to version 2.8.4 or newer.
- Official ID
- CVE-2021-24332
- Report title
- Autoptimize <= 2.8.3 - Stored Cross-Site Scripting
- First reported
- Sources
- Wordfence, seen
Someone could run their own code on your site and take it over (before 2.7.8)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Before 2.7.8
- Fixed in
- 2.7.8
- What to do
- If your site has an affected version, update Autoptimize to version 2.7.8 or newer.
- Official ID
- CVE-2021-24376
- Report title
- Autoptimize <= 2.7.7 - Arbitrary File Upload (and Remote Code Execution) via Import Settings
- First reported
- Sources
- Wordfence, seen
Someone could plant harmful code that runs for your visitors or admins (before 2.7.8)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Before 2.7.8
- Fixed in
- 2.7.8
- What to do
- If your site has an affected version, update Autoptimize to version 2.7.8 or newer.
- Official ID
- CVE-2021-24378
- Report title
- Autoptimize <= 2.7.7 - Unsafe File Upload to Cross-Site Scripting
- First reported
- Sources
- Wordfence, seen
Someone could run their own code on your site and take it over (before 2.7.8) (2)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Before 2.7.8
- Fixed in
- 2.7.8
- What to do
- If your site has an affected version, update Autoptimize to version 2.7.8 or newer.
- Official ID
- CVE-2021-24377
- Report title
- Autoptimize <= 2.7.7 - Race Condition leading to Remote Code Execution
- First reported
- Sources
- Wordfence, seen
Someone could run their own code on your site and take it over (up to and including 2.7.6)
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Up to and including 2.7.6
- Fixed in
- 2.7.7
- What to do
- If your site has an affected version, update Autoptimize to version 2.7.7 or newer.
- Official ID
- CVE-2020-24948
- Report title
- Autoptimize <= 2.7.6 - Authenticated Arbitrary File Upload
- First reported
- Sources
- Wordfence, seen
A stranger could read or delete private files on your server
A trusted security source confirmed it. If your site has an affected version, fix it this week.
- Affected versions
- Up to and including 2.1.0
- Fixed in
- 2.1.1
- What to do
- If your site has an affected version, update Autoptimize to version 2.1.1 or newer.
- Report title
- Autoptimize <= 2.1.0 - Unauthenticated Local File Inclusion
- First reported
- Sources
- Wordfence, seen
Where this comes from
We collect these reports from public security sources and rewrite them in plain words. Each problem shows its sources and the date we first saw it. This page never says whether your own site is affected: only a check of your site’s versions can tell.
Get an email when your site is affected.
Install Watchfox AI once. It checks your plugins and themes against this list every day, for free.
Install Watchfox AI (free)