CVE-2026-120686

AMP for WP <= 1.1.19 - Unauthenticated Stored Cross-Site Scripting via Comment Content

Published Nov 18, 2026 CVSS 3.1 · 7.2 High EPSS n/a KEV · Not listed
Description
The AMP for WP – Accelerated Mobile Pages plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 1.1.19 via comment content rendered on AMP post pages. The plugin registers an output-buffer callback ampforwp_the_content_filter_full() on the 'wp' action (priority 999) that applies a set of tag-agnostic and quote-agnostic regular expressions — notably /onclick=[^>]*/ — to the entire AMP page output after approved comments have already been echoed into it; these regexes do not understand HTML tag or attribute-value boundaries, so a kses-legal comment that places strings like 'onclick="' inside a title attribute value can trigger deletion of the title's closing quote, causing the browser to re-parse what was previously textual content inside the attribute value as live HTML attributes. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page, after an administrator has approved the comment.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the AMP for WP plugin to version 1.1.20 or later where the output buffer filter is removed or corrected.
  • If upgrading is not immediately possible, disable or remove public comments on AMP pages, or apply strict sanitization to comment content before rendering.
  • Implement a Content Security Policy that restricts script execution to trusted origins, mitigating any residual XSS that may persist if the flaw is not fully patched.

Generated by OpenCVE AI on November 19, 2026 at 02:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mohammed Kaludi
Mohammed Kaludi amp For Wp – Accelerated Mobile Pages
Wordpress-extensions
Wordpress-extensions amp For Wp
Vendors & Products Mohammed Kaludi
Mohammed Kaludi amp For Wp – Accelerated Mobile Pages
Wordpress-extensions
Wordpress-extensions amp For Wp
Type Values Removed Values Added
Description The AMP for WP – Accelerated Mobile Pages plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 1.1.19 via comment content rendered on AMP post pages. The plugin registers an output-buffer callback ampforwp_the_content_filter_full() on the 'wp' action (priority 999) that applies a set of tag-agnostic and quote-agnostic regular expressions — notably /onclick=[^>]*/ — to the entire AMP page output after approved comments have already been echoed into it; these regexes do not understand HTML tag or attribute-value boundaries, so a kses-legal comment that places strings like 'onclick="' inside a title attribute value can trigger deletion of the title's closing quote, causing the browser to re-parse what was previously textual content inside the attribute value as live HTML attributes. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page, after an administrator has approved the comment.
Title AMP for WP <= 1.1.19 - Unauthenticated Stored Cross-Site Scripting via Comment Content
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Nov 18, 2026, 2:02 PM
Reserved
Nov 2, 2026, 7:17 PM
Status
Deferred
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 2:17 PM