Description
The Autoptimize plugin for WordPress is vulnerable to Stored Cross-Site Scripting via REQUEST_URI Path in all versions up to, and including, 3.1.15.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the Critical CSS feature to be active with a valid API key configured, as this is the precondition for unauthenticated frontend requests to trigger queue entries via ao_ccss_enqueue().
References6
- plugins.trac.wordpress.org/browser/autoptimize/tags/3.1.15.1/cl…
- plugins.trac.wordpress.org/browser/autoptimize/tags/3.1.15.1/cl…
- plugins.trac.wordpress.org/browser/autoptimize/tags/3.1.15.1/cl…
- plugins.trac.wordpress.org/browser/autoptimize/tags/3.1.15.1/cl…
- plugins.trac.wordpress.org/changeset?reponame=&old=3713884%40au…
- www.wordfence.com/threat-intel/vulnerabilities/id/1704cffa-75ed…
Metrics
- CVSS 3.1
-
7.2
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - EPSS — exploit probability
- 0% percentile: 21 · as of 10 November 2026
- CWE
- CWE-79
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.