WordPress plugin · Updated daily · Source: Wordfence Intelligence

Autoptimize vulnerabilities: affected versions and fixes

Autoptimize has 800,000+ active installs. Here are its publicly disclosed vulnerabilities, whether your version is affected, and what to do now.

Autoptimize at a glance

  • 15 publicly disclosed vulnerabilities, 6 of them rated High or Critical. The most recent was disclosed on Oct 1, 2026.
  • Ranked #78 by popularity on WordPress.org (800,000+ active installs).
  • The latest version is 3.1.17 (released Oct 25, 2026). The most recent security fix shipped in 3.1.16.
  • Every disclosed vulnerability has a fix. If you are on the latest version, none of them apply to you.
  • The first thing to do: update to the latest version and turn on automatic updates.

Check your Autoptimize version

Enter the Autoptimize version number shown on your Plugins screen to see only the vulnerabilities that apply to it, most serious first.

Your version number is compared on this page only. It is not sent anywhere.

Get an email when a new vulnerability is disclosed

We'll tell you when a new vulnerability is disclosed in “Autoptimize”, with the version that fixes it. Free, email address only, stop any time.

We use your email address only for these alerts. Privacy policy

Want every plugin and theme on your site checked daily?

With Security Ready Standard, just install the “KazLinks Security Ready” plugin from WordPress.org. It sends only the names and versions of your plugins and themes, and we check them against disclosed vulnerabilities every day. Your first in-depth scan is free.

View the plugin on wordpress.orgGet a free in-depth scan

How to check whether your site is affected

  1. 1

    Find your version

    In your WordPress dashboard, open Plugins → Installed Plugins and look at the version number under “Autoptimize”.

  2. 2

    Compare it with the list below

    If your version falls within “Affected versions”, that vulnerability applies to you. If you are on the “Fixed in” version or later, it does not.

  3. 3

    Update

    Click “Update now” to move to the latest version (3.1.17). Taking a backup first is a good idea.

  4. 4

    Turn on automatic updates

    On the same screen, click “Enable auto-updates” so future fixes are installed automatically.

Known Autoptimize vulnerabilities

  • Autoptimize <= 3.1.15.1 - Unauthenticated Stored Cross-Site Scripting via Comment Author Name

    Cross-site scripting (XSS) · CVE-2026-78471

    Affected versions: ≤ 3.1.15.1

    Fixed in: 3.1.16

    Severity: Medium 5.4 · Disclosed Oct 1, 2026

  • Autoptimize <= 3.1.15.1 - Unauthenticated Stored Cross-Site Scripting via REQUEST_URI Path

    Cross-site scripting (XSS) · CVE-2026-14995

    Affected versions: ≤ 3.1.15.1

    Fixed in: 3.1.16

    Severity: High 7.2 · Disclosed Sep 30, 2026

  • Multiple Plugins <= Multiple Versions - Unauthenticated Stored Cross-Site Scripting

    Cross-site scripting (XSS) · CVE-2026-3220

    Affected versions: < 3.1.15

    Fixed in: 3.1.15

    Severity: High 7.2 · Disclosed Apr 27, 2026

  • Autoptimize <= 3.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'ao_post_preload' Meta Value

    Cross-site scripting (XSS) · CVE-2026-2352

    Affected versions: ≤ 3.1.14

    Fixed in: 3.1.15

    Severity: Medium 6.4 · Disclosed Mar 20, 2026

  • Autoptimize <= 3.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lazy-loaded Image Attributes

    Cross-site scripting (XSS) · CVE-2026-2430

    Affected versions: ≤ 3.1.14

    Fixed in: 3.1.15

    Severity: Medium 6.4 · Disclosed Mar 20, 2026

  • Autoptimize <= 3.1.13 - Authenticated (Contributor+) Stored Cross-Site Scripting

    Cross-site scripting (XSS) · CVE-2025-13401

    Affected versions: ≤ 3.1.13

    Fixed in: 3.1.14

    Severity: Medium 6.4 · Disclosed Dec 3, 2025

  • Autoptimize <= 3.1.6 - Authenticated (Admin+) Stored Cross-Site Scripting via Critical CSS Rules

    Cross-site scripting (XSS) · CVE-2023-2113

    Affected versions: ≤ 3.1.6

    Fixed in: 3.1.7

    Severity: Medium 4.4 · Disclosed Apr 25, 2023

  • Autoptimize <= 3.0.4 - Sensitive Information Disclosure

    Information disclosure · CVE-2022-4057

    Affected versions: ≤ 3.0.4

    Fixed in: 3.1.0

    Severity: Medium 5.3 · Disclosed Dec 5, 2022

  • Autoptimize <= 3.1.0 - Authenticated (Admin+) Stored Cross-Site Scripting via Critical CSS Settings

    Cross-site scripting (XSS) · CVE-2022-2635

    Affected versions: ≤ 3.1.0

    Fixed in: 3.1.1

    Severity: Medium 5.5 · Disclosed Jul 19, 2022

  • Autoptimize <= 2.8.3 - Stored Cross-Site Scripting

    Cross-site scripting (XSS) · CVE-2021-24332

    Affected versions: < 2.8.4

    Fixed in: 2.8.4

    Severity: Medium 5.5 · Disclosed May 7, 2021

  • Autoptimize <= 2.7.7 - Arbitrary File Upload (and Remote Code Execution) via Import Settings

    Remote code execution · CVE-2021-24376

    Affected versions: < 2.7.8

    Fixed in: 2.7.8

    Severity: Critical 9.8 · Disclosed Oct 9, 2020

  • Autoptimize <= 2.7.7 - Race Condition leading to Remote Code Execution

    Remote code execution · CVE-2021-24377

    Affected versions: < 2.7.8

    Fixed in: 2.7.8

    Severity: High 8.1 · Disclosed Oct 9, 2020

  • Autoptimize <= 2.7.7 - Unsafe File Upload to Cross-Site Scripting

    Cross-site scripting (XSS) · CVE-2021-24378

    Affected versions: < 2.7.8

    Fixed in: 2.7.8

    Severity: Medium 4.8 · Disclosed Oct 9, 2020

  • Autoptimize <= 2.7.6 - Authenticated Arbitrary File Upload

    Arbitrary file upload · CVE-2020-24948

    Affected versions: ≤ 2.7.6

    Fixed in: 2.7.7

    Severity: High 7.2 · Disclosed Aug 24, 2020

  • Autoptimize <= 2.1.0 - Unauthenticated Local File Inclusion

    Arbitrary file read or deletion

    Affected versions: ≤ 2.1.0

    Fixed in: 2.1.1

    Severity: Critical 9.8 · Disclosed Jun 19, 2017

Vulnerability data: Wordfence Intelligence (Copyright Defiant, Inc. · license terms). Severity is the CVSS score (0–10). Most recent disclosure: Oct 1, 2026.

Most common weaknesses in Autoptimize

Cross-site scripting (XSS)

10 issues

An attacker plants a malicious script on a page so that it runs in visitors’ browsers. If an administrator opens that page, the attacker can steal their session or act as the administrator.

Remote code execution

2 issues

An attacker can run code of their choice on your server. This is the most dangerous kind: it usually means a full takeover of the site.

Information disclosure

1 issue

Data that should stay private, such as user details or configuration values, can be read from outside.

Frequently asked questions

Is Autoptimize safe to use?

Autoptimize is a well-known plugin with 800,000+ active installs. Finding vulnerabilities in popular plugins is common, and most of them are fixed in newer versions. The important thing is to stay on the latest version (3.1.17) and turn on automatic updates.

How do I find which version of Autoptimize my site is running?

In your WordPress dashboard, go to Plugins → Installed Plugins. The version number is shown under the plugin name. If you see “There is a new version available”, you are on an older version.

Could updating break my site?

Occasionally an update changes how something looks or works, so take a backup before updating. If an agency or developer maintains your site, send them a link to this page and ask them to update.

Can I check all my other plugins too?

Yes. Security Ready reads the versions of every plugin and theme on your site, matches them against known vulnerabilities every day, and tells you what to fix. Your first in-depth scan is free.

Check every plugin and theme automatically, every day

Security Ready reads the versions of every plugin, theme and WordPress core on your site, matches them against known vulnerabilities every day, and tells you how to fix what it finds. Your first in-depth scan is free, and no payment details are needed.

Think your site has already been hacked? Before updating, read what to do in the first hour. Updating alone does not remove a backdoor that has already been planted.

← All plugin vulnerabilitiesAutoptimize on WordPress.org