# WebP Express <= 0.25.16 - Authenticated (Contributor+) Stored Cross-Site Scripting via Image HTML Attributes

- **ID:** WPSEC-2026-4669
- **Plugin:** WebP Express (`webp-express`), https://wordpress.org/plugins/webp-express/
- **Affected versions:** from 0.11.0 before 0.25.17
- **Fixed in:** 0.25.17 (Update to 0.25.17 or later.)
- **Severity:** Medium 4.9 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-05)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/webp-express
- **Fix released:** 2026-12-04
- **Published:** 2026-12-05
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4669/

## Description

The WebP Express plugin for WordPress is vulnerable to Stored Cross-Site Scripting via HTML attributes of <img> tags in all versions up to, and including, 0.25.16, due to insufficient output escaping in the bundled dom-util-for-webp library, which decodes image attribute values and writes them back unescaped when it replaces <img> tags with <picture> tags. 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. Exploitation requires the 'Alter HTML' feature to be enabled with the 'Replace <img> tags with <picture> tags' option selected.

## References

- https://wpsec.com/vuln/WPSEC-2026-4669/
- https://plugins.svn.wordpress.org/webp-express/tags/0.25.17/
- https://wordpress.org/plugins/webp-express/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4669/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
