{
 "id": "WPSEC-2026-4379",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4379/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4379/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4379/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4379.json",
 "title": "AMP for WP – Accelerated Mobile Pages <= 1.1.22 - Unauthenticated Stored Cross-Site Scripting via Comment Anchor Attributes",
 "description": "The AMP for WP – Accelerated Mobile Pages plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the AMP anchor rewriting of comment content in all versions from 1.1.17 up to, and including, 1.1.22. This is due to how ampforwp_remove_unwanted_code() and ampforwp_sanitize_anchor_opening_tag() handle anchors. They pick out any <a> tag whose attribute values contain the text 'label=', re-serialize it with DOMDocument::saveHTML(), and then cut the result at the first '>'. HTML entities in attribute values come back out as raw angle brackets, so the rebuilt tag no longer ends where the original attribute did. This makes it possible for unauthenticated attackers to inject arbitrary web scripts through comment links. The scripts run whenever a user opens the AMP version of the affected page.",
 "plugin": {
  "slug": "accelerated-mobile-pages",
  "name": "AMP for WP – Accelerated Mobile Pages",
  "full_name": "AMP for WP – Accelerated Mobile Pages",
  "wordpress_org": "https://wordpress.org/plugins/accelerated-mobile-pages/",
  "advisories_url": "https://wpsec.com/vuln/plugin/accelerated-mobile-pages/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/accelerated-mobile-pages"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 7.2,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
  "severity": "High"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.1.17",
    "from_inclusive": true,
    "to": "1.1.23",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.1.17 before 1.1.23"
  ]
 },
 "introduced_in": "1.1.17",
 "fixed_in": "1.1.23",
 "remediation": "Update to 1.1.23 or later.",
 "fix_released": "2026-12-02T08:51:05+00:00",
 "published": "2026-12-03T12:50:55+00:00",
 "updated": "2026-12-03T12:11:48.942867+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4379/",
  "https://plugins.svn.wordpress.org/accelerated-mobile-pages/tags/1.1.23/",
  "https://wordpress.org/plugins/accelerated-mobile-pages/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/accelerated-mobile-pages",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-12-03"
 }
}