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-50043 Overview
CVE-2025-50043 is a stored cross-site scripting (XSS) vulnerability in the Jordy Meow Code Engine plugin for WordPress. The flaw affects all versions up to and including 0.3.2. Attackers with low-privileged authenticated access can inject persistent JavaScript payloads that execute when other users render affected pages.
The weakness maps to CWE-79, improper neutralization of input during web page generation. Because the payload is stored, it executes repeatedly against site visitors and administrators without further attacker interaction.
Critical Impact
Stored XSS enables session theft, administrative action forgery, and content injection against WordPress sites running Code Engine ≤ 0.3.2.
Affected Products
- Jordy Meow Code Engine plugin for WordPress
- All versions from n/a through 0.3.2
- WordPress sites with the plugin installed and activated
Discovery Timeline
- 2025-06-20 - CVE-2025-50043 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-50043
Vulnerability Analysis
The Code Engine plugin fails to neutralize user-supplied input before rendering it in generated web pages. An authenticated contributor-level user can submit crafted input containing HTML or JavaScript. The plugin stores this input and later returns it to browsers without proper encoding or sanitization.
Exploitation requires low privileges (PR:L) and user interaction (UI:R), typically an administrator or editor viewing the attacker-controlled content. The scope change (S:C) reflects that the injected script runs in the context of the WordPress site rather than only the vulnerable component.
Root Cause
The plugin accepts input through its code-handling interfaces and writes it into page output without applying WordPress sanitization functions such as esc_html(), esc_attr(), or wp_kses(). Missing output encoding allows arbitrary markup, including <script> tags and event handlers, to execute in victim browsers.
Attack Vector
An authenticated attacker submits a payload containing JavaScript through a Code Engine input field. When a privileged user navigates to a page that renders the stored content, the browser executes the script under the site's origin. This enables cookie theft, forced administrative actions through authenticated requests, redirection to attacker infrastructure, or injection of persistent backdoors through user or plugin modification.
Technical specifics of the injection sink are documented in the Patchstack Vulnerability Report.
Detection Methods for CVE-2025-50043
Indicators of Compromise
- Unexpected <script> tags, onerror=, onload=, or javascript: strings stored in Code Engine plugin database tables.
- Administrator sessions exhibiting unauthorized plugin installations, user creations, or option changes shortly after viewing plugin-rendered pages.
- Outbound requests from administrator browsers to unfamiliar domains originating on pages containing Code Engine content.
Detection Strategies
- Query the WordPress wp_posts and plugin-specific tables for stored payloads matching XSS signatures such as <script, onerror=, or document.cookie.
- Review web server access logs for POST requests to Code Engine endpoints submitted by contributor or author accounts.
- Compare rendered page output against expected content via automated diffing to flag unexpected markup injection.
Monitoring Recommendations
- Alert on new or modified administrator accounts created outside of change windows.
- Monitor WordPress audit logs for plugin configuration changes from low-privileged accounts.
- Deploy a Content Security Policy (CSP) in report-only mode to surface inline script execution on plugin-rendered pages.
How to Mitigate CVE-2025-50043
Immediate Actions Required
- Deactivate the Code Engine plugin on all WordPress sites running version 0.3.2 or earlier until a patched release is confirmed.
- Rotate administrator and editor passwords and invalidate active sessions through wp_destroy_other_sessions() or forced logout.
- Audit stored plugin content for malicious script payloads and remove any injected markup.
Patch Information
No fixed version is identified in the NVD record at the time of writing. Monitor the Patchstack advisory and the plugin's WordPress.org listing for an updated release above 0.3.2.
Workarounds
- Restrict contributor, author, and editor role assignments to trusted users only.
- Deploy a web application firewall (WAF) rule that blocks requests containing <script, onerror=, or javascript: to Code Engine endpoints.
- Enforce a strict Content Security Policy that disallows inline scripts and untrusted script sources.
- Remove the plugin entirely if the functionality is not business-critical.
# Disable the plugin via WP-CLI until a fixed version is available
wp plugin deactivate code-engine
wp plugin delete code-engine
# Audit stored content for XSS payloads
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content REGEXP '<script|onerror=|javascript:';"
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

