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-24638 Overview
CVE-2025-24638 is a DOM-based Cross-Site Scripting (XSS) vulnerability in the pddring Create with Code WordPress plugin. The flaw stems from improper neutralization of user-supplied input during web page generation [CWE-79]. All versions of Create with Code up to and including 1.4 are affected.
An attacker with low privileges can inject malicious scripts that execute in a victim's browser. Successful exploitation requires user interaction, such as clicking a crafted link. The vulnerability has a changed scope, meaning injected scripts can impact resources beyond the vulnerable component.
Critical Impact
Attackers can execute arbitrary JavaScript in victim browsers, enabling session hijacking, credential theft, and unauthorized actions within the WordPress site context.
Affected Products
- pddring Create with Code WordPress plugin, versions up to and including 1.4
- WordPress installations with the vulnerable plugin enabled
- Any site rendering plugin-controlled output to authenticated users
Discovery Timeline
- 2025-01-24 - CVE-2025-24638 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-24638
Vulnerability Analysis
The vulnerability is a DOM-based XSS flaw in the Create with Code plugin. Client-side JavaScript writes attacker-controlled data into the Document Object Model (DOM) without proper sanitization or encoding. When the browser parses the resulting markup, injected script content executes within the origin of the WordPress site.
Exploitation requires an authenticated user with low privileges and user interaction. The scope change indicates the injected payload can affect data or functionality beyond the vulnerable plugin component. This includes other authenticated sessions on the same WordPress origin.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79]. The plugin fails to apply contextual output encoding or input sanitization before passing values to DOM sink functions. Common sinks in this class include innerHTML, document.write, and eval-adjacent APIs that interpret strings as markup or code.
Attack Vector
The attack is delivered over the network. An attacker crafts a URL or input containing a JavaScript payload that the plugin reflects into the DOM. The victim must visit the crafted resource or interact with attacker-supplied content to trigger execution.
Once executed, the payload runs with the victim's privileges in the WordPress site. Consequences include theft of session cookies, forging requests against the WordPress REST API, and defacement of rendered content. Refer to the Patchstack WordPress XSS Vulnerability advisory for additional technical context.
Detection Methods for CVE-2025-24638
Indicators of Compromise
- HTTP requests containing script tags, JavaScript event handlers, or javascript: URIs targeting plugin endpoints
- Unexpected outbound requests from browser sessions to attacker-controlled domains
- WordPress audit log entries showing content modifications or privilege changes from unexpected sources
Detection Strategies
- Review web server access logs for requests to Create with Code plugin paths containing encoded script payloads or suspicious URL parameters
- Deploy a Web Application Firewall (WAF) with XSS signatures to flag reflected and DOM-based injection attempts
- Monitor browser Content Security Policy (CSP) violation reports for inline script execution originating from the plugin
Monitoring Recommendations
- Enable WordPress activity logging to capture administrative actions following plugin interactions
- Correlate authenticated user activity with anomalous session cookie usage or API calls
- Track plugin version inventory across WordPress deployments to identify unpatched installations
How to Mitigate CVE-2025-24638
Immediate Actions Required
- Disable or remove the Create with Code plugin on all WordPress sites running version 1.4 or earlier
- Audit WordPress user accounts and rotate credentials for any sessions suspected of exposure
- Restrict plugin administrative access to trusted users until a patched release is available
Patch Information
At the time of publication, no fixed version has been identified in the referenced advisory. Monitor the Patchstack advisory and the WordPress plugin repository for updated releases from the pddring maintainer.
Workarounds
- Deploy a WAF rule set that filters XSS payloads targeting the plugin's parameters and endpoints
- Enforce a strict Content Security Policy (CSP) that disallows inline scripts and restricts script sources to trusted origins
- Remove the plugin entirely if business requirements do not justify continued use pending a vendor patch
# Example WordPress CLI command to deactivate the vulnerable plugin
wp plugin deactivate create-with-code
wp plugin delete create-with-code
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

