# CVE-2025-13401: Autoptimize \<= 3.1.13 - Authenticated (Contributor+) Stored Cross-Site Scripting

- Priority: **Routine**
- Reason: Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-03 · Modified: 2026-04-08
- Record: https://cvemate.com/vulnerability/CVE-2025-13401 · JSON: https://cvemate.com/vulnerability/CVE-2025-13401/json

## Description

```text
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.
```

## Signals

- CVSS: 6.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- EPSS: 0.315%, percentile 26.37%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- optimizingmatters autoptimize: ≤ 3.1.13
- wordpress autoptimize: ≤ 3.1.13 (fixed in 3.1.14)

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/6ed5bdb3-c4cd-4982-bc47-feeff527e284?source=cve>
- <https://plugins.trac.wordpress.org/changeset/3401333/autoptimize>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/6ed5bdb3-c4cd-4982-bc47-feeff527e284>

---

Data as of 2026-12-05T13:31:22.978Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
