CVE-2025-13401
MEDIUMAutoptimize <= 3.1.13 - Authenticated Stored Cross-Site Scripting via LCP Image Preload Metabox
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2025-13401. PoCs published by ciscocamelo.
AI-analyzed exploit summary This PoC demonstrates a stored XSS vulnerability in Autoptimize <= 3.1.13, where insufficient sanitization of event handler attributes in image tags leads to arbitrary JavaScript execution when processed by the plugin.
Description
The Autoptimize plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the LCP Image to preload metabox in all versions up to, and including, 3.1.13 due to insufficient input sanitization and output escaping on user-supplied image attributes in the "create_img_preload_tag" function. 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.
Exploits (1)
This PoC demonstrates a stored XSS vulnerability in Autoptimize <= 3.1.13, where insufficient sanitization of event handler attributes in image tags leads to arbitrary JavaScript execution when processed by the plugin.
References (2)
Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N