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-24704 Overview
CVE-2025-24704 is a stored cross-site scripting (XSS) vulnerability in the grimdonkey Magic the Gathering Card Tooltips WordPress plugin. The flaw affects all versions up to and including 3.4.0. An authenticated attacker with low privileges can inject malicious JavaScript that persists in the application and executes in the browsers of other users who view the affected pages. The vulnerability is categorized under CWE-79 for improper neutralization of input during web page generation.
Critical Impact
Attackers can store malicious scripts that execute in victim browsers, enabling session theft, account takeover, and malicious redirection across any site rendering the affected plugin output.
Affected Products
- grimdonkey Magic the Gathering Card Tooltips plugin for WordPress
- All versions from unspecified initial release through 3.4.0
- WordPress sites that render card tooltip content generated by the plugin
Discovery Timeline
- 2025-01-24 - CVE CVE-2025-24704 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-24704
Vulnerability Analysis
The vulnerability stems from improper neutralization of user-supplied input before it is reflected in generated web pages. The plugin accepts input used in card tooltip rendering without sufficient sanitization or output encoding. Attackers inject HTML or JavaScript payloads that the plugin later writes into pages viewed by other users. Because the payload is persisted in the WordPress backend, it executes every time a victim loads the affected content.
Exploitation requires low privileges and user interaction, with the attack delivered over the network. The scope change indicates the executed script can affect resources beyond the vulnerable component, including other authenticated users and administrators.
Root Cause
The plugin fails to apply WordPress sanitization functions such as wp_kses(), sanitize_text_field(), or escaping helpers like esc_html() and esc_attr() on tooltip-related input. User-controlled strings flow directly into HTML output, allowing script tags and event handlers to persist and execute.
Attack Vector
An attacker with contributor-level or similar authenticated access submits a crafted payload through a plugin input field. The payload is stored in the WordPress database. When any user, including administrators, visits a page containing the injected tooltip, the browser executes the attacker's JavaScript in the context of the site. This can be leveraged to steal session cookies, perform actions on behalf of the victim, or pivot to administrative account compromise.
See the Patchstack XSS Vulnerability Advisory for additional technical context.
Detection Methods for CVE-2025-24704
Indicators of Compromise
- Unexpected <script> tags, onerror, or onload attributes stored in WordPress post content, post meta, or plugin options related to card tooltips
- Outbound browser requests from authenticated admin sessions to unfamiliar external domains following tooltip page loads
- New or modified WordPress administrator accounts created shortly after low-privileged users submitted plugin content
- Session cookies appearing in web server referrer logs or external telemetry
Detection Strategies
- Audit database tables wp_posts, wp_postmeta, and plugin-specific options for HTML entities, encoded script payloads, or JavaScript event handlers
- Deploy a web application firewall rule to flag requests containing XSS payload patterns targeting plugin endpoints
- Review WordPress audit logs for content submissions by contributor or author roles that include HTML markup
Monitoring Recommendations
- Monitor administrator sessions for anomalous API calls originating from the WordPress admin dashboard
- Alert on creation of privileged users and plugin or theme installations outside of change windows
- Track browser-side errors and Content Security Policy violation reports originating from pages that render card tooltips
How to Mitigate CVE-2025-24704
Immediate Actions Required
- Identify WordPress installations running Magic the Gathering Card Tooltips version 3.4.0 or earlier and disable the plugin until a patched release is confirmed
- Review all contributor, author, and editor accounts for unexpected submissions and revoke untrusted accounts
- Rotate administrator passwords and invalidate active sessions to counter potential cookie theft
- Inspect the database for stored payloads and remove any injected JavaScript
Patch Information
No fixed version is listed in the available advisory data. Monitor the Patchstack advisory and the plugin's WordPress.org page for an updated release that supersedes 3.4.0.
Workarounds
- Remove or deactivate the plugin on sites that do not require card tooltip functionality
- Restrict content submission permissions so only trusted administrator or editor roles can create plugin-rendered content
- Deploy a Content Security Policy that disallows inline scripts and restricts script sources to trusted origins
- Place the WordPress site behind a web application firewall with signatures for stored XSS payloads targeting plugin input fields
# Example: disable the vulnerable plugin via WP-CLI
wp plugin deactivate magic-the-gathering-card-tooltips
wp plugin delete magic-the-gathering-card-tooltips
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

