Technical impact
The AMP for WP plugin registers a late output buffer callback that applies regular expressions to the entire rendered page, including approved comments. These expressions do not respect HTML tag boundaries and can delete quotation marks from attribute values. An attacker can craft a comment that, after approval, injects JavaScript into the title attribute, causing the browser to interpret it as real code. When users visit the injected page, the malicious script runs in the context of the site, enabling session hijacking, defacement, or data exfiltration. This vulnerability is a classic stored Cross‑Site Scripting flaw (CWE‑79).
Affected Systems
WordPress installations that use the AMP for WP – Accelerated Mobile Pages plugin, version 1.1.19 or earlier. Any site that has enabled public comments on AMP pages and has the plugin active is affected.
Risk and Exploitability
The CVSS score of 7.2 indicates a high severity with moderate complexity. The EPSS score is not available, but the flaw is easy to exploit: an unauthenticated visitor can submit a comment containing malicious markup, and the owner must simply approve it for the payload to become permanent. Because the problem resides on the AMP page render path and is not mitigated by standard WordPress sanitization, the risk to site users is significant. The vulnerability is not yet listed in CISA’s KEV catalog, but the pathway and impact are clear.