Skip to main content

CVE-2025-5541: Runners Log WordPress Plugin XSS Vulnerability

CVE-2025-5541 is a stored XSS vulnerability in the Runners Log WordPress plugin affecting versions up to 3.9.2. Attackers with contributor-level access can inject malicious scripts via the runnerslog shortcode. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

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-5541 Overview

The Runners Log plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability affecting all versions up to and including 3.9.2. The flaw resides in the plugin's runnerslog shortcode, which fails to sanitize user-supplied attributes or escape output. Authenticated attackers with contributor-level permissions or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any user who visits the affected page. The vulnerability is tracked under CWE-79 and carries a CVSS 3.1 base score of 6.4.

Critical Impact

Authenticated contributors can persistently inject JavaScript that executes against administrators and site visitors, enabling session theft, forced actions, and potential site takeover.

Affected Products

  • Runners Log plugin for WordPress — all versions through 3.9.2
  • WordPress sites allowing contributor-level or higher registration
  • Any page or post rendering the runnerslog shortcode

Discovery Timeline

  • 2025-06-06 - CVE-2025-5541 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-5541

Vulnerability Analysis

The Runners Log plugin registers a shortcode named runnerslog that accepts user-controlled attributes. The handler, implemented in runnerslog_chart.php, passes those attributes into the rendered HTML output without applying WordPress sanitization helpers such as sanitize_text_field() or escaping functions like esc_attr() and esc_html().

Because shortcodes are commonly used by contributors when drafting posts, the plugin exposes a persistent injection sink that survives post save and renders on every subsequent view. Any script payload stored in a shortcode attribute executes in the context of the WordPress site origin, inheriting the privileges of the viewing user's session. Administrators previewing or publishing contributor submissions are high-value targets.

Root Cause

The root cause is insufficient input sanitization and missing output escaping on shortcode attributes handled in runnerslog_chart.php. User-supplied attribute values flow directly into HTML output, violating the WordPress plugin security guidance to escape late and escape often. See the WordPress Plugin Code Review for the vulnerable code path.

Attack Vector

An attacker first obtains a WordPress account with contributor-level privileges or higher. The attacker then creates or edits a post containing the runnerslog shortcode with a malicious attribute payload. When an administrator or visitor loads the rendered page, the injected JavaScript executes in their browser. Scope is Changed under the CVSS vector because the vulnerable component affects resources beyond its own security authority, including administrator sessions. Refer to the Wordfence Vulnerability Report for additional analysis.

Detection Methods for CVE-2025-5541

Indicators of Compromise

  • Posts or pages containing the runnerslog shortcode with attribute values that include <script>, onerror=, onload=, or javascript: tokens
  • Unexpected outbound requests from administrator browsers to attacker-controlled domains after loading posts rendered by the plugin
  • New administrator accounts or role changes shortly after a contributor-authored post was previewed
  • Modifications to WordPress options, themes, or plugins without a corresponding admin audit entry

Detection Strategies

  • Audit the wp_posts table for post_content entries containing [runnerslog with suspicious attribute values
  • Scan rendered HTML output for inline event handlers originating from plugin-generated markup
  • Correlate contributor publishing activity with subsequent administrator session anomalies

Monitoring Recommendations

  • Enable WordPress audit logging for post creation, edits, and user role changes by contributor accounts
  • Monitor web server access logs for anomalous POST requests to wp-admin/post.php from low-privilege users
  • Alert on Content Security Policy (CSP) violations originating from pages that render the runnerslog shortcode

How to Mitigate CVE-2025-5541

Immediate Actions Required

  • Deactivate the Runners Log plugin until a patched version is confirmed available and installed
  • Review all posts containing the runnerslog shortcode and remove untrusted attribute values
  • Audit contributor-level and higher accounts, removing any that are unused or unverified
  • Rotate administrator session cookies and credentials if the plugin has been in use with untrusted contributors

Patch Information

No fixed version is referenced in the available advisories. The vulnerability affects all versions through 3.9.2. Monitor the Wordfence Vulnerability Report and the plugin's repository for a security release, and apply updates immediately once published.

Workarounds

  • Remove or disable the runnerslog shortcode by unregistering it in a mu-plugin until a patch is released
  • Restrict contributor-level registration and require editor approval before publishing posts that use plugin shortcodes
  • Deploy a web application firewall rule to block shortcode attributes containing script tags or JavaScript event handlers
  • Enforce a strict Content Security Policy that disallows inline scripts on content pages
bash
# Example mu-plugin snippet to unregister the vulnerable shortcode
# Save as wp-content/mu-plugins/disable-runnerslog.php
add_action('init', function () {
    if (shortcode_exists('runnerslog')) {
        remove_shortcode('runnerslog');
    }
}, 20);

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.