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-30597 Overview
CVE-2025-30597 is a DOM-based Cross-Site Scripting (XSS) vulnerability affecting the iografica IG Shortcodes WordPress plugin. The flaw stems from improper neutralization of user-supplied input during web page generation, classified under [CWE-79]. All versions of IG Shortcodes up to and including 3.1 are affected. Attackers can inject malicious scripts that execute in the context of a victim's browser session. Successful exploitation requires user interaction and low-privilege authentication. The vulnerability carries a CVSS 3.1 base score of 6.5 and crosses a security scope boundary, meaning impact extends beyond the vulnerable component.
Critical Impact
Authenticated attackers can execute arbitrary JavaScript in victim browsers, enabling session hijacking, credential theft, and unauthorized actions within WordPress administrative contexts.
Affected Products
- iografica IG Shortcodes plugin for WordPress
- All versions from n/a through 3.1 (inclusive)
- WordPress sites with the ig-shortcodes plugin installed and active
Discovery Timeline
- 2025-03-24 - CVE-2025-30597 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-30597
Vulnerability Analysis
The vulnerability resides in client-side JavaScript shipped with the IG Shortcodes plugin. The plugin accepts input values and writes them into the Document Object Model (DOM) without proper sanitization or output encoding. This allows attacker-controlled data to be interpreted as executable JavaScript rather than inert text content.
DOM-based XSS differs from reflected or stored XSS because the injection occurs entirely in the browser. The malicious payload modifies the DOM through unsafe sinks such as innerHTML, document.write, or similar APIs. Server-side filtering does not block the attack because the payload may never reach the backend in its exploitable form.
Exploitation requires an authenticated user with low privileges and user interaction, such as clicking a crafted link or visiting a prepared page. The scope change indicator means successful exploitation affects resources beyond the vulnerable plugin, including other WordPress components served from the same origin.
Root Cause
The plugin's JavaScript handlers process URL parameters, shortcode attributes, or other DOM sources and insert them into page content without applying context-aware encoding. The absence of input validation on dangerous sinks is the direct cause of the flaw.
Attack Vector
An attacker crafts a URL or page that contains a malicious JavaScript payload within parameters consumed by the IG Shortcodes plugin. When an authenticated WordPress user interacts with the crafted content, the plugin writes the payload to the DOM, triggering script execution. The attacker gains the ability to steal cookies, perform actions on behalf of the user, or redirect the browser to attacker-controlled infrastructure.
Technical details are described in the Patchstack WordPress Vulnerability advisory.
Detection Methods for CVE-2025-30597
Indicators of Compromise
- Unexpected <script> tags, event handlers, or javascript: URIs rendered within pages that use IG Shortcodes
- Outbound requests from browser sessions to unfamiliar domains following interaction with WordPress pages
- Unauthorized administrative actions originating from legitimate low-privilege user accounts
- Suspicious URL parameters containing encoded JavaScript payloads targeting shortcode handlers
Detection Strategies
- Inventory WordPress installations and identify sites running the ig-shortcodes plugin at version 3.1 or earlier
- Review web server access logs for requests containing script-like payloads in query parameters
- Deploy a web application firewall (WAF) rule set that identifies common XSS payloads targeting shortcode parameters
- Monitor browser Content Security Policy (CSP) violation reports for inline script execution attempts
Monitoring Recommendations
- Alert on anomalous session activity for authenticated WordPress users, including unexpected privilege use or administrative changes
- Track plugin version inventory across managed WordPress hosts to confirm patch state
- Correlate authentication events with subsequent client-side errors or CSP violations to surface in-progress exploitation
How to Mitigate CVE-2025-30597
Immediate Actions Required
- Audit all WordPress installations for the IG Shortcodes plugin and record installed versions
- Deactivate the IG Shortcodes plugin on sites running version 3.1 or earlier until a fixed release is confirmed
- Enforce least-privilege access for WordPress contributor, author, and editor accounts
- Require multifactor authentication for all authenticated WordPress users
Patch Information
At the time of the latest NVD update, no vendor-fixed version is listed in the available references. Monitor the Patchstack advisory and the WordPress plugin repository for updates beyond version 3.1. Apply the patched release immediately once published.
Workarounds
- Remove or deactivate the ig-shortcodes plugin until a patched version is released
- Deploy a strict Content Security Policy that disallows inline script execution and restricts script sources
- Configure a WAF to block requests containing XSS payloads directed at WordPress endpoints
- Educate authenticated users on the risks of clicking untrusted links while logged into WordPress
# Example Content Security Policy header to limit XSS impact
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'"
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

