Skip to main content
Vulnerability Database/CVE-2025-24547

CVE-2025-24547: Cookie Opt-In Plugin Stored XSS Vulnerability

CVE-2025-24547 is a stored cross-site scripting vulnerability in the Caching Compatible Cookie Opt-In and JavaScript WordPress plugin that enables attackers to inject malicious scripts. This article covers technical details, affected versions through 0.0.10, security impact, and recommended mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-24547 Overview

CVE-2025-24547 is a stored Cross-Site Scripting (XSS) vulnerability in the Caching Compatible Cookie Opt-In and JavaScript WordPress plugin by matthias.wagner. The flaw affects all plugin versions up to and including 0.0.10. It stems from improper neutralization of user-supplied input during web page generation, classified under [CWE-79]. An authenticated attacker with low privileges can inject malicious script payloads that persist in the application and execute in the browsers of other users, including administrators.

Critical Impact

Stored XSS enables session hijacking, credential theft, and administrative account takeover in affected WordPress sites running the plugin.

Affected Products

  • matthias.wagner Caching Compatible Cookie Opt-In and JavaScript plugin for WordPress
  • All versions from initial release through 0.0.10
  • WordPress sites with the plugin installed and activated

Discovery Timeline

  • 2025-01-24 - CVE-2025-24547 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-24547

Vulnerability Analysis

The plugin fails to properly sanitize and encode user-supplied input before rendering it in web pages. An attacker with low-level authenticated access can submit crafted input containing JavaScript payloads through plugin-managed fields. The payload is stored server-side and later served to other users. When a victim loads the affected page, the browser parses and executes the injected script within the trust context of the WordPress site.

Because the vulnerability has a changed scope, script execution can affect components beyond the plugin itself. User interaction is required for the payload to trigger, typically when an administrator or visitor loads a page containing the stored content.

Root Cause

The root cause is missing or insufficient output encoding when rendering user-controlled data in HTML contexts. The plugin does not apply WordPress escaping functions such as esc_html(), esc_attr(), or wp_kses() on stored input prior to output. This allows raw HTML and <script> tags to be interpreted by the browser as executable content.

Attack Vector

Exploitation occurs over the network against a WordPress site running a vulnerable plugin version. An attacker authenticates with low-privilege credentials, submits input containing a malicious script through a plugin-controlled field, and waits for a higher-privileged user to visit a page that renders the stored payload. Successful exploitation can steal session cookies, perform actions on behalf of the victim, or redirect users to attacker-controlled infrastructure.

No verified public exploit code is available at the time of publication. Refer to the Patchstack XSS Vulnerability Report for advisory details.

Detection Methods for CVE-2025-24547

Indicators of Compromise

  • Unexpected <script> tags, onerror=, or onload= handlers stored in WordPress database tables associated with the plugin.
  • Outbound HTTP requests from administrator browsers to unknown domains shortly after loading plugin-rendered pages.
  • New or unexplained WordPress administrator accounts created following administrator visits to affected pages.

Detection Strategies

  • Audit the WordPress wp_options and plugin-specific tables for HTML or JavaScript content in fields intended to store plain text.
  • Review web server access logs for POST requests to plugin endpoints containing URL-encoded script fragments such as %3Cscript%3E.
  • Deploy Content Security Policy (CSP) reporting to capture inline script execution attempts on pages rendered by the plugin.

Monitoring Recommendations

  • Monitor authentication logs for privilege escalation events and unexpected session activity from administrator accounts.
  • Track plugin version inventory across all WordPress installations to identify hosts running versions <= 0.0.10.
  • Alert on anomalous DOM modifications and cookie access patterns using browser-side telemetry where available.

How to Mitigate CVE-2025-24547

Immediate Actions Required

  • Identify all WordPress sites running the Caching Compatible Cookie Opt-In and JavaScript plugin and confirm installed version.
  • Deactivate and remove the plugin on affected sites until a patched release is confirmed by the vendor.
  • Force password resets and invalidate active sessions for administrator accounts on affected sites.

Patch Information

At the time of publication, no fixed version has been listed for the Caching Compatible Cookie Opt-In and JavaScript plugin. The vulnerability affects all versions through 0.0.10. Consult the Patchstack advisory for current patch status and monitor the plugin repository for updates.

Workarounds

  • Remove the plugin from all WordPress sites until an official fix is released.
  • Restrict plugin-related administrative interfaces to trusted IP ranges using web server or firewall rules.
  • Deploy a Web Application Firewall (WAF) rule that blocks requests containing <script> tags or common XSS payloads targeting plugin endpoints.
  • Enforce a strict Content Security Policy that disallows inline script execution to reduce impact of stored payloads.
bash
# Example: locate and disable the plugin via WP-CLI
wp plugin list --path=/var/www/html | grep caching-compatible-cookie-optin-and-javascript
wp plugin deactivate caching-compatible-cookie-optin-and-javascript --path=/var/www/html
wp plugin uninstall caching-compatible-cookie-optin-and-javascript --path=/var/www/html

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.