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-5699 Overview
CVE-2025-5699 is a Stored Cross-Site Scripting (XSS) vulnerability in the Developer Formatter plugin for WordPress. The flaw affects all versions up to and including 2015.0.2.1. It stems from insufficient input sanitization and output escaping in the Custom CSS component. Authenticated attackers with administrator-level access can inject arbitrary web scripts into pages. The scripts execute whenever a user accesses an injected page. The vulnerability only impacts multi-site installations and installations where the unfiltered_html capability has been disabled. The weakness is classified under CWE-79.
Critical Impact
Authenticated administrators on affected multi-site WordPress installations can inject persistent JavaScript that executes in the browser of any user visiting a compromised page.
Affected Products
- Developer Formatter plugin for WordPress — all versions up to and including 2015.0.2.1
- WordPress multi-site installations running the vulnerable plugin
- WordPress installations where unfiltered_html capability has been disabled
Discovery Timeline
- 2025-06-06 - CVE-2025-5699 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-5699
Vulnerability Analysis
The Developer Formatter plugin provides a Custom CSS feature intended for administrators to style formatted code output. The plugin accepts administrator-supplied CSS input but fails to sanitize that input or escape it when writing it back to rendered pages. As a result, attacker-controlled markup, including <script> tags or event handler attributes, is stored in the database and later emitted into page output. Any visitor to a page containing the injected payload triggers execution of the attacker's JavaScript in the context of the WordPress site. Relevant source files include devfmt_css.php and devinterface.php in the plugin trunk, as documented in the WordPress Plugin Source File and WordPress Plugin Interface File.
Root Cause
The root cause is a failure to apply WordPress sanitization helpers such as wp_kses() or sanitize_text_field() to the Custom CSS input, combined with missing output escaping via esc_html() or esc_attr(). Normally, administrators on single-site WordPress have the unfiltered_html capability and can post arbitrary HTML by design. On multi-site installations, only super admins hold that capability, so regular site administrators should not be able to emit raw HTML. The plugin bypasses this safety model by storing and echoing administrator CSS input without filtering.
Attack Vector
An attacker who has gained administrator credentials on a vulnerable multi-site WordPress blog navigates to the Developer Formatter settings and submits a Custom CSS payload that includes HTML or JavaScript rather than valid CSS. The plugin persists the payload. When any user, including a super admin, loads a page where the plugin renders its Custom CSS block, the injected script executes in that user's browser session. This enables session theft, administrative action forgery, or persistent backdoor installation across the multi-site network.
No verified public exploit code is available. See the Wordfence Vulnerability Report for additional technical context.
Detection Methods for CVE-2025-5699
Indicators of Compromise
- Unexpected <script> tags, javascript: URIs, or HTML event handlers (for example onerror, onload) stored in Developer Formatter configuration records within the wp_options table.
- Outbound browser requests from logged-in users to unfamiliar domains shortly after loading pages that render plugin-controlled CSS.
- Creation of new administrator accounts or modification of user roles following administrator sessions on multi-site networks running Developer Formatter.
Detection Strategies
- Audit stored Custom CSS values in the plugin's configuration for any content that is not valid CSS syntax, particularly angle brackets or JavaScript keywords.
- Review WordPress audit logs for POST requests from administrator accounts to Developer Formatter settings endpoints in devinterface.php.
- Compare rendered HTML output of multi-site pages against known-good baselines to identify injected inline scripts.
Monitoring Recommendations
- Enable a web application firewall rule set that flags administrator form submissions containing script-related tokens targeting the devformatter plugin paths.
- Log and alert on changes to WordPress plugin option rows, especially those owned by devformatter.
- Monitor browser Content Security Policy (CSP) violation reports for inline script execution on multi-site network pages.
How to Mitigate CVE-2025-5699
Immediate Actions Required
- Deactivate and remove the Developer Formatter plugin on any WordPress multi-site installation until a patched release is confirmed.
- Restrict administrator account provisioning on multi-site networks and audit existing administrator accounts for legitimacy.
- Rotate credentials and invalidate active sessions for any administrator who accessed the plugin while vulnerable.
Patch Information
No vendor patch has been published in the enriched CVE data. Consult the WordPress Plugin Developer Page for the latest release information and the Wordfence Vulnerability Report for ongoing mitigation guidance.
Workarounds
- Uninstall Developer Formatter until a fixed version is released, since the vulnerable code path cannot be safely disabled while the plugin is active.
- Re-enable the unfiltered_html capability only for trusted super admins and remove it from any lower-trust administrator roles on multi-site networks.
- Deploy a Content Security Policy that forbids inline scripts to limit the impact of injected payloads on rendered pages.
- Place a web application firewall in front of /wp-admin/ endpoints and block requests containing script tags submitted to Developer Formatter settings.
# Example: remove the Developer Formatter plugin via WP-CLI on a multi-site network
wp plugin deactivate devformatter --network
wp plugin delete devformatter
# Example: audit stored plugin options for script content
wp db query "SELECT option_name, option_value FROM wp_options \
WHERE option_name LIKE 'devfmt%' \
AND (option_value LIKE '%<script%' OR option_value LIKE '%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

