Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-13401: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in optimizingmatters Autoptimize

0
Medium
VulnerabilityCVE-2025-13401cvecve-2025-13401cwe-79
Published: Wed Dec 03 2025 (12/03/2025, 13:52:44 UTC)
Source: CVE Database V5
Vendor/Project: optimizingmatters
Product: Autoptimize

Description

CVE-2025-13401 is a stored cross-site scripting (XSS) vulnerability in the Autoptimize WordPress plugin affecting all versions up to 3. 1. 13. The flaw exists in the "create_img_preload_tag" function due to insufficient sanitization and escaping of user-supplied image attributes, allowing authenticated users with contributor-level access or higher to inject malicious scripts. These scripts execute whenever any user accesses the compromised page, potentially leading to session hijacking, defacement, or further attacks. The vulnerability has a CVSS score of 6. 4 (medium severity) and does not require user interaction but does require authentication with low privileges. No known exploits are currently reported in the wild. European organizations using WordPress sites with Autoptimize installed should prioritize patching or mitigating this issue to prevent exploitation. Countries with high WordPress adoption and significant digital presence, such as Germany, the UK, France, and the Netherlands, are most at risk.

AI-Powered Analysis

AILast updated: 12/10/2025, 14:51:56 UTC

Technical Analysis

CVE-2025-13401 is a stored cross-site scripting vulnerability identified in the Autoptimize plugin for WordPress, a widely used tool for optimizing website performance. The vulnerability arises from improper neutralization of input during web page generation, specifically in the "create_img_preload_tag" function that handles the LCP (Largest Contentful Paint) Image to preload metabox. This function fails to adequately sanitize and escape user-supplied image attributes, allowing an authenticated attacker with contributor-level privileges or higher to inject arbitrary JavaScript code into pages. Because the malicious script is stored, it executes every time a user visits the infected page, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of users. The vulnerability requires authentication but no user interaction, and the attack surface includes any WordPress site running Autoptimize versions up to and including 3.1.13. The CVSS 3.1 score of 6.4 reflects a medium severity, with network attack vector, low attack complexity, and partial impact on confidentiality and integrity. No public exploits have been reported yet, but the vulnerability poses a significant risk due to the plugin's popularity and the ease of exploitation by low-privileged users. The flaw underscores the importance of proper input validation and output encoding in web applications, especially in plugins that handle user-generated content or attributes.

Potential Impact

For European organizations, this vulnerability can lead to unauthorized script execution on their WordPress websites, potentially resulting in session hijacking, data theft, defacement, or the spread of malware to site visitors. Given the widespread use of WordPress and Autoptimize in Europe, especially among SMEs and content-heavy websites, exploitation could damage brand reputation, lead to regulatory non-compliance (e.g., GDPR breaches due to data exposure), and disrupt business operations. Attackers could leverage this vulnerability to escalate privileges or pivot to other internal systems if administrative credentials are compromised. The requirement for contributor-level access means insider threats or compromised accounts pose a significant risk. The stored nature of the XSS increases the attack's persistence and reach, affecting all users who visit the infected pages. This could also impact e-commerce platforms, government portals, and media outlets relying on WordPress, amplifying the potential damage.

Mitigation Recommendations

European organizations should immediately audit and restrict contributor-level access on WordPress sites using Autoptimize to trusted users only. Apply the latest plugin updates once available; if no patch exists yet, consider temporarily disabling the LCP Image preload feature or the Autoptimize plugin entirely. Implement Web Application Firewalls (WAFs) with rules to detect and block suspicious script injections targeting image attributes. Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts. Regularly scan websites for injected scripts or anomalies in image tags. Educate site administrators on the risks of granting contributor access and enforce strong authentication mechanisms, including multi-factor authentication. Monitor logs for unusual activity related to image attribute modifications. Finally, consider using security plugins that detect and prevent XSS attacks and maintain regular backups to enable quick recovery if compromise occurs.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2025-11-19T10:38:07.284Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6930444551392e1c8b19b543

Added to database: 12/3/2025, 2:08:05 PM

Last enriched: 12/10/2025, 2:51:56 PM

Last updated: 1/19/2026, 7:58:57 AM

Views: 77

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats