Vulnerabilities / Add Expires Headers & Optimized Minify / WPSEC-2026-4510
Add Expires Headers & Optimized Minify <= 3.4.0 - Unauthenticated Stored Cross-Site Scripting via HTML Minifier
Medium 5.4
CWE-79Fixed in 4.0.0
- ID
- WPSEC-2026-4510
- Plugin
- Add Expires Headers & Optimized Minify (add-expires-headers)
- Affected
- all versions before 4.0.0
- Remediation
- Update to 4.0.0 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-03
- Attack surface
- Add Expires Headers & Optimized Minify on WPSec AttackSurface
- Fix released
- Published
Description
The add-expires-headers plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the HTML minifier in all versions up to, and including, 3.4.0. The minifier used a predictable placeholder token and did not restore protected content in a single pass, so attacker-supplied content containing the placeholder could be swapped for other markup. This makes it possible for unauthenticated attackers to inject arbitrary web scripts into pages that will execute whenever a user accesses an affected page, provided HTML minification is enabled.
References
- https://wpsec.com/vuln/WPSEC-2026-4510/
- https://plugins.svn.wordpress.org/add-expires-headers/tags/4.0.0/
- https://wordpress.org/plugins/add-expires-headers/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS