CVE-2026-2352: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in optimizingmatters Autoptimize
The Autoptimize plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ao_post_preload' meta value in all versions up to, and including, 3.1.14. This is due to insufficient input sanitization in the `ao_metabox_save()` function and missing output escaping when the value is rendered into a `<link>` tag in `autoptimizeImages.php`. 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, granted the "Image optimization" or "Lazy-load images" setting is enabled in the plugin configuration.
AI Analysis
Technical Summary
CVE-2026-2352 is a stored cross-site scripting vulnerability in the Autoptimize WordPress plugin (versions up to 3.1.14). The issue arises from improper neutralization of input in the 'ao_post_preload' meta value, specifically in the ao_metabox_save() function and the rendering of this value into a <link> tag within autoptimizeImages.php. Authenticated attackers with Contributor or higher privileges can exploit this to inject arbitrary scripts that execute in the context of users visiting the compromised pages, contingent on the plugin's "Image optimization" or "Lazy-load images" settings being enabled.
Potential Impact
Successful exploitation allows an attacker with Contributor-level access or above to inject persistent malicious scripts into pages, which execute in the browsers of users viewing those pages. This can lead to information disclosure and integrity impacts (as indicated by the CVSS vector: Confidentiality and Integrity impacts are low, Availability is not affected). The attack requires no user interaction beyond visiting the affected page and leverages plugin features related to image optimization.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level access to trusted users only and consider disabling the "Image optimization" and "Lazy-load images" settings in the Autoptimize plugin configuration to mitigate the risk of script injection. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-2352: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in optimizingmatters Autoptimize
Description
The Autoptimize plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ao_post_preload' meta value in all versions up to, and including, 3.1.14. This is due to insufficient input sanitization in the `ao_metabox_save()` function and missing output escaping when the value is rendered into a `<link>` tag in `autoptimizeImages.php`. 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, granted the "Image optimization" or "Lazy-load images" setting is enabled in the plugin configuration.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-2352 is a stored cross-site scripting vulnerability in the Autoptimize WordPress plugin (versions up to 3.1.14). The issue arises from improper neutralization of input in the 'ao_post_preload' meta value, specifically in the ao_metabox_save() function and the rendering of this value into a <link> tag within autoptimizeImages.php. Authenticated attackers with Contributor or higher privileges can exploit this to inject arbitrary scripts that execute in the context of users visiting the compromised pages, contingent on the plugin's "Image optimization" or "Lazy-load images" settings being enabled.
Potential Impact
Successful exploitation allows an attacker with Contributor-level access or above to inject persistent malicious scripts into pages, which execute in the browsers of users viewing those pages. This can lead to information disclosure and integrity impacts (as indicated by the CVSS vector: Confidentiality and Integrity impacts are low, Availability is not affected). The attack requires no user interaction beyond visiting the affected page and leverages plugin features related to image optimization.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level access to trusted users only and consider disabling the "Image optimization" and "Lazy-load images" settings in the Autoptimize plugin configuration to mitigate the risk of script injection. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-02-11T16:37:03.973Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69bdda56b462d409683a8bce
Added to database: 3/20/2026, 11:37:58 PM
Last enriched: 4/9/2026, 6:40:10 PM
Last updated: 5/1/2026, 8:36:03 PM
Views: 52
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.