{
 "id": "WPSEC-2026-1236",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1236/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1236/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1236/index.md",
 "title": "WP AutoTerms <= 3.0.7 - Unauthenticated DOM-Based Cross-Site Scripting via Cookie Consent Preview postMessage Handler",
 "description": "The TermsFeed AutoTerms plugin for WordPress is vulnerable to DOM-Based Cross-Site Scripting via the Cookie Consent preview page (preview/cookie-consent.php) in versions 3.0.0 up to, and including, 3.0.7. This is due to the directly accessible preview page accepting postMessage data from any origin, without checking the message origin or source, and passing it to the Cookie Consent library, which inserts the configuration text into the page. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that run in the context of the site if they can trick a user into visiting a malicious page that frames or opens the preview page and sends it a crafted message.",
 "plugin": {
  "slug": "auto-terms-of-service-and-privacy-policy",
  "name": "WP AutoTerms",
  "full_name": "TermsFeed AutoTerms: Privacy Policy Generator, Cookie Consent, GDPR, CCPA, Terms & Conditions, Disclaimers, Cookies Policy, EULA",
  "wordpress_org": "https://wordpress.org/plugins/auto-terms-of-service-and-privacy-policy/",
  "advisories_url": "https://wpsec.com/vuln/plugin/auto-terms-of-service-and-privacy-policy/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/auto-terms-of-service-and-privacy-policy"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.1,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "3.0.0",
    "from_inclusive": true,
    "to": "3.0.8",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 3.0.0 before 3.0.8"
  ]
 },
 "introduced_in": "3.0.0",
 "fixed_in": "3.0.8",
 "remediation": "Update to 3.0.8 or later.",
 "fix_released": "2026-10-17T21:56:36+00:00",
 "published": "2026-10-18T22:41:42+00:00",
 "updated": "2026-10-18T11:00:52.502114+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1236/",
  "https://plugins.svn.wordpress.org/auto-terms-of-service-and-privacy-policy/tags/3.0.8/",
  "https://wordpress.org/plugins/auto-terms-of-service-and-privacy-policy/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/auto-terms-of-service-and-privacy-policy",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-10-18"
 }
}