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-5844 Overview
CVE-2025-5844 is a Stored Cross-Site Scripting (XSS) vulnerability in the Radius Blocks plugin for WordPress. The flaw affects all versions up to and including 2.2.1 and resides in the subHeadingTagName parameter of the advanced heading block. Insufficient input sanitization and output escaping allow authenticated users with Contributor-level access or higher to inject arbitrary JavaScript. Injected scripts execute in the browser of any user who visits an affected page. The vulnerability is tracked under CWE-79.
Critical Impact
Authenticated contributors can persist malicious JavaScript into WordPress pages, enabling session theft, account takeover of higher-privileged users, and site defacement when victims view the injected content.
Affected Products
- Radius Blocks plugin for WordPress — all versions through 2.2.1
- WordPress sites allowing Contributor-level or higher user registration
- Any WordPress deployment using the vulnerable advanced heading block template
Discovery Timeline
- 2025-08-15 - CVE-2025-5844 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-5844
Vulnerability Analysis
The Radius Blocks plugin exposes an advanced heading block that accepts a user-controlled subHeadingTagName attribute. The rendering template at templates/blocks/advanced-heading/layout.php writes this value into the output HTML without sanitization or escaping. Because the value is persisted with the post content, every visitor to a page containing the compromised block executes the injected payload. The attack is cross-site scripting of the stored variety, which is more impactful than reflected XSS because no social engineering is required to trigger execution.
The scope change in the vector reflects that script execution crosses from the plugin's rendering context into the browser's trust boundary for the WordPress site. Contributor accounts, which many sites allow for guest authors, are enough to plant the payload. An attacker who hijacks an administrator session via the stored script can escalate to arbitrary PHP execution through plugin or theme editing.
Root Cause
The root cause is missing output escaping on the subHeadingTagName attribute before it is emitted into the rendered HTML. The template concatenates attacker-controlled input into tag or attribute positions without applying WordPress escaping helpers such as esc_attr() or tag_escape(). See the vulnerable template at WordPress Plugin Template File.
Attack Vector
An authenticated contributor edits a post, inserts an advanced heading block, and supplies a crafted subHeadingTagName value containing HTML or JavaScript. After the post is published or previewed by a higher-privileged user, the browser parses the injected markup and executes the payload under the site's origin. Full technical details are documented in the Wordfence Vulnerability Report.
No verified exploit code is published. The vulnerability is described in prose only.
Detection Methods for CVE-2025-5844
Indicators of Compromise
- Post or page content containing Radius Blocks advanced heading markup with <script>, onerror=, onload=, or javascript: substrings in the subHeadingTagName field.
- Unexpected outbound requests from administrator browsers to attacker-controlled domains after viewing contributor-authored content.
- New WordPress administrator accounts or modified user roles created shortly after contributor posts were previewed.
Detection Strategies
- Query the wp_posts table for serialized block attributes containing subHeadingTagName values with angle brackets, quotes, or event handlers.
- Deploy a web application firewall rule that inspects POST requests to /wp-json/wp/v2/ and admin-ajax.php for block payloads containing script tags in heading attributes.
- Review audit logs for Contributor-role accounts creating or editing posts that include Radius Blocks components.
Monitoring Recommendations
- Monitor WordPress plugin inventory for Radius Blocks versions at or below 2.2.1.
- Alert on administrator session cookies being transmitted to domains outside the site's allowed list.
- Enable Content Security Policy reporting to capture inline script execution attempts on pages rendered by the plugin.
How to Mitigate CVE-2025-5844
Immediate Actions Required
- Update the Radius Blocks plugin to a version later than 2.2.1 as soon as a patched release is available from the vendor.
- Audit all posts and pages created or modified by Contributor-level accounts for suspicious block attributes.
- Rotate administrator credentials and invalidate active sessions if evidence of exploitation is found.
Patch Information
At the time of publication, consult the Radius Blocks Plugin Overview for the latest release notes and apply the vendor-supplied update that addresses the subHeadingTagName sanitization issue. The vulnerable code path is referenced in the WordPress Plugin Template File.
Workarounds
- Deactivate the Radius Blocks plugin until a fixed version is installed.
- Restrict the Contributor role or require editorial review of all contributor-submitted content before publication.
- Deploy a web application firewall rule that blocks script tags and event-handler attributes submitted through block editor REST endpoints.
- Enforce a strict Content Security Policy that disallows inline scripts on front-end pages.
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

