Vulnerabilities / WP AutoTerms / WPSEC-2026-1236

WP AutoTerms <= 3.0.7 - Unauthenticated DOM-Based Cross-Site Scripting via Cookie Consent Preview postMessage Handler

Medium 6.1 CWE-79Fixed in 3.0.8
ID
WPSEC-2026-1236
Plugin
TermsFeed AutoTerms: Privacy Policy Generator, Cookie Consent, GDPR, CCPA, Terms & Conditions, Disclaimers, Cookies Policy, EULA (auto-terms-of-service-and-privacy-policy)
Affected
from 3.0.0 before 3.0.8
Remediation
Update to 3.0.8 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-10-18
Attack surface
WP AutoTerms on WPSec AttackSurface
Fix released
Published

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.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0