# AMP for WP <= 1.1.21 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Page Builder Comments Module

- **ID:** WPSEC-2026-3762
- **Plugin:** AMP for WP – Accelerated Mobile Pages (`accelerated-mobile-pages`), https://wordpress.org/plugins/accelerated-mobile-pages/
- **Affected versions:** from 1.0.42 before 1.1.22
- **Fixed in:** 1.1.22 (Update to 1.1.22 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-24)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/accelerated-mobile-pages
- **Fix released:** 2026-11-23
- **Published:** 2026-11-24
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3762/

## Description

The AMP for WP – Accelerated Mobile Pages plugin for WordPress is vulnerable to Stored Cross-Site Scripting via comment content rendered by the AMP Page Builder Comments module in all versions up to, and including, 1.1.21, due to comment content filtered with wp_kses_post() being passed through a page-builder-wide htmlspecialchars_decode(), which turns HTML entities stored in a comment into live markup. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in comments that execute whenever a user accesses an AMP page built with the page builder that contains the Comments module, once the comment is approved.

## References

- https://wpsec.com/vuln/WPSEC-2026-3762/
- https://plugins.svn.wordpress.org/accelerated-mobile-pages/tags/1.1.22/
- https://wordpress.org/plugins/accelerated-mobile-pages/

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

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.
