# AMP for WP <= 1.1.21 - Unauthenticated Stored Cross-Site Scripting via AMP Comment Output

- **ID:** WPSEC-2026-3763
- **Plugin:** AMP for WP – Accelerated Mobile Pages (`accelerated-mobile-pages`), https://wordpress.org/plugins/accelerated-mobile-pages/
- **Affected versions:** all versions before 1.1.22
- **Fixed in:** 1.1.22 (Update to 1.1.22 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/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-3763/

## Description

The AMP for WP – Accelerated Mobile Pages plugin for WordPress is vulnerable to Stored Cross-Site Scripting via comments displayed on AMP pages in all versions up to, and including, 1.1.21, due to make_clickable() being applied to comment HTML after AMP sanitization. Attribute values that the DOM serializer writes back with raw characters can then be rewritten into new markup and attributes that the sanitizer never checked. This makes it possible for unauthenticated attackers who can post comments to inject arbitrary web scripts that execute whenever a user accesses an AMP page displaying the comment.

## References

- https://wpsec.com/vuln/WPSEC-2026-3763/
- 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-3763/

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.
