Skip to main content

Autoptimize EUVDEUVD-2026-13842

| CVE-2026-2430 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-03-20 Wordfence
6.4
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

While the CVSS 3.1 score of 6.4 indicates moderate severity with network-based attack vector (AV:N) and low attack complexity (AC:L), the real-world exploitability is constrained by several factors that lower practical risk below the numerical score suggests. The vulnerability requires PR:L (low privilege level), meaning only authenticated users with Contributor role or above can exploit it—a significant hurdle in most WordPress deployments where contributor access is relatively restricted. The UI:N (no user interaction required) for the attack itself is neutral, but the payload only executes when legitimate users visit the injected page, creating a delivery requirement. The scope change (S:C) indicates cross-context impact, raising the score appropriately. Critically, a patch is available (evidenced by the GitHub commit reference showing a fix has been implemented), and vendor Wordfence documentation confirms remediation pathways exist. No evidence from provided sources indicates active in-the-wild exploitation or CISA KEV inclusion, which would be stronger indicators of immediate threat. The automatable nature of the attack is moderate—while script injection is technically automatable, the requirement for authenticated access and the targeted nature of stored XSS limits mass-exploitation potential compared to unauthenticated RCE vulnerabilities. In SSVC framework terms, this presents exploitation credible (patch exists, attack complexity is low) but limited attack surface and requires compromised or malicious contributor accounts.

Exploit ScenarioDerived

An attacker with a compromised or intentionally-created Contributor account logs into a WordPress site running Autoptimize 3.1.14 and creates a blog post containing a crafted image tag with a malicious src URL such as <img src='https://example.com/image.jpg src=onload=alert(document.cookie)'>. When the page is processed by Autoptimize's lazy-loading function, the regex matches the space-src pattern and breaks the HTML, transforming the tag structure in a way that injects the onload=alert(document.cookie) as an executable attribute. Subsequently, when legitimate website visitors view this post, the malicious JavaScript executes in their browsers within the website's security context, allowing the attacker to steal session cookies, perform actions on behalf of users, or inject further malicious content into the page DOM. No public proof-of-concept has been referenced in the provided intelligence, but the attack complexity is low given the straightforward nature of regex-based string manipulation and the predictable behavior of image tag parsing.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 20, 2026

The Autoptimize WordPress plugin contains a Stored Cross-Site Scripting (XSS) vulnerability in the lazy-loading image processing function that allows authenticated attackers with Contributor-level access to inject arbitrary web scripts into pages. The flaw exists in all versions up to and including 3.1.14 and stems from an overly permissive regular expression that fails to properly validate image tag attributes, enabling attackers to craft malicious image tags that break HTML structure and promote attribute values into executable code. This vulnerability carries a moderate CVSS score of 6.4 and requires user interaction for stored XSS payloads to execute when pages are accessed.

RemediationAI

Immediately upgrade Autoptimize to a version released after 3.1.14, which includes the fix committed to the GitHub repository (https://github.com/futtta/autoptimize/commit/a0f87112fe80b5a97b036229c41cb18454392858). In WordPress admin, navigate to Plugins, find Autoptimize, and click Update. As an interim measure for organizations unable to patch immediately, restrict Contributor-level access to only trusted users, audit existing contributors for compromise, and review page content and post revisions for suspicious image tags containing space-separated src attributes. Consider implementing a Web Application Firewall (WAF) rule to detect and block HTTP requests containing image tags with the malicious pattern (space followed by src= in URL parameters or post content). Monitor WordPress audit logs for posts created or modified by lower-privileged users during the vulnerability window to identify potential exploitation attempts.

Affected VersionsENISA

Autoptimize * ≤3.1.14

Affected Packages

euvd autoptimize no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the add_lazyload function within the Autoptimize plugin (CPE: cpe:2.3:a:optimizingmatters:autoptimize:*:*:*:*:*:*:*:*), specifically in the autoptimizeImages.php class file. The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation, or Cross-site Scripting). The vulnerable code uses a naive regular expression pattern matching \ssrc= (a space followed by 'src=') to process image tags for lazy-loading functionality. This regex-based string replacement approach fails to distinguish between legitimate src attributes within img tags and malicious src sequences injected elsewhere in the HTML, such as within other attribute values or as part of URL parameters. When an attacker crafts an image tag with a src URL containing a space followed by 'src=', the regex matches unintended occurrences and breaks the HTML structure, effectively promoting text that should remain in attribute values into executable HTML attributes where inline event handlers or protocol handlers can be injected.

Know when Autoptimize gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

The Autoptimize plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the lazy-loading image processing in all versions up to, and including, 3.1.14. This is due to the use of an overly permissive regular expression in the add_lazyload function that replaces all occurrences of \ssrc= in image tags without limiting to the actual attribute. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page by crafting an image tag where the src URL contains a space followed by src=, causing the regex to break the HTML structure and promote text inside attribute values into executable HTML attributes.

Executive ViewAI

Why It Matters

Organizations using Autoptimize should be aware of moderate risk from CVE-2026-2430, a cross-site scripting vulnerability rated CVSS 6.4. Attackers could inject scripts to steal sessions or perform actions as authenticated users. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2021-24376 CRITICAL POC
9.8 Jun 21

The Autoptimize WordPress plugin before 2.7.8 attempts to delete malicious files (such as .php) form the uploaded archiv

CVE-2026-3220 HIGH POC
8.8 May 18

Unauthenticated stored cross-site scripting affects the Autoptimize (before 3.1.15), Clearfy Cache (before 2.4.2), and S

CVE-2021-24377 HIGH POC
8.1 Jun 21

The Autoptimize WordPress plugin before 2.7.8 attempts to remove potential malicious files from the extracted archive up

CVE-2020-24948 HIGH POC
7.2 Sep 03

The ao_ccss_import AJAX call in Autoptimize Wordpress Plugin 2.7.6 does not ensure that the file provided is a legitimat

CVE-2023-2113 MEDIUM POC
4.8 May 30

The Autoptimize WordPress plugin before 3.1.7 does not sanitise and escape the settings imported from a previous export,

CVE-2022-2635 MEDIUM POC
4.8 Sep 16

The Autoptimize WordPress plugin before 3.1.1 does not sanitise and escape some of its settings, which could allow high

CVE-2021-24378 MEDIUM POC
4.8 Jun 21

The Autoptimize WordPress plugin before 2.7.8 does not check for malicious files such as .html in the archive uploaded v

CVE-2021-24332 MEDIUM POC
4.8 May 24

The Autoptimize WordPress plugin before 2.8.4 was missing proper escaping and sanitisation in some of its settings, allo

CVE-2026-14995 HIGH
7.2 Oct 01

Stored cross-site scripting in the Autoptimize WordPress plugin (all versions up to and including 3.1.15.1) lets an unau

CVE-2026-2352 MEDIUM
6.4 Mar 20

A Stored Cross-Site Scripting (XSS) vulnerability exists in the Autoptimize WordPress plugin through version 3.1.14, cau

CVE-2026-78471 MEDIUM
5.4 Oct 02

Stored cross-site scripting in the Autoptimize WordPress plugin (all versions up to and including 3.1.15.1) allows unaut

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy