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-2024-10038 Overview
The WP-Strava plugin for WordPress contains a stored Cross-Site Scripting (XSS) vulnerability affecting all versions up to and including 2.12.1. The flaw stems from insufficient input sanitization and output escaping in the plugin's admin settings. Authenticated attackers holding administrator-level permissions can inject arbitrary JavaScript into pages, which executes when any user visits the affected page. The issue is scoped to WordPress multi-site installations and single-site installations where the unfiltered_html capability has been disabled. The vulnerability is tracked under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page.
Critical Impact
Authenticated administrators on multi-site WordPress installations can inject persistent JavaScript into WP-Strava admin settings, enabling session hijacking, privilege escalation to Super Admin, and arbitrary actions in the context of any user viewing the affected pages.
Affected Products
- WP-Strava plugin for WordPress, all versions up to and including 2.12.1
- WordPress multi-site installations with WP-Strava enabled
- WordPress single-site installations where the unfiltered_html capability is disabled
Discovery Timeline
- 2024-11-13 - CVE-2024-10038 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-10038
Vulnerability Analysis
The WP-Strava plugin integrates Strava activity data into WordPress sites and exposes administrative settings for configuring authentication and display options. The vulnerable code path handles administrator-supplied input within the plugin's authentication settings component referenced in WPStrava/Auth.php. The plugin stores supplied values and later renders them into administrative or front-end output without applying the escaping functions expected for HTML contexts, such as esc_html(), esc_attr(), or wp_kses().
Because the injected payload is stored in the database, it executes every time a user loads the page containing the rendered setting. In a WordPress multi-site deployment, site administrators do not implicitly hold unfiltered_html, so sanitization at the sink is required. The same condition applies when unfiltered_html has been explicitly revoked on a single-site installation.
Root Cause
The root cause is missing output escaping on administrator-controlled setting values before they are rendered into HTML. User input flows from the plugin's admin settings handlers into stored options and then back into response bodies without context-appropriate neutralization of script-related HTML tags, matching the pattern described by CWE-80. The relevant sink is documented in the WP-Strava Auth.php source.
Attack Vector
An attacker who has already obtained administrator credentials on a target site submits a crafted payload through the WP-Strava admin settings form. The payload is stored and later reflected in pages served to other users, including Super Admins in multi-site setups. Successful execution runs attacker-controlled JavaScript in the victim's browser session, enabling cookie theft, forced administrative actions through authenticated AJAX requests, or escalation to Super Admin on multi-site networks. User interaction (visiting the injected page) is required for the payload to fire. Full technical context is available in the Wordfence Vulnerability Report.
Detection Methods for CVE-2024-10038
Indicators of Compromise
- Presence of <script> tags, javascript: URIs, or HTML event handler attributes (onerror, onload, onclick) inside WP-Strava option values in the wp_options table.
- Unexpected outbound requests from administrator browsers to attacker-controlled domains originating from WordPress admin pages.
- New administrator or Super Admin accounts created shortly after a WP-Strava settings page was accessed.
- Modifications to WP-Strava settings performed by accounts that do not normally manage the plugin.
Detection Strategies
- Query the WordPress database for WP-Strava option keys and inspect stored values for HTML tags, encoded script payloads, or suspicious URL schemes.
- Review WordPress audit logs for update_option or options.php POST requests targeting WP-Strava settings.
- Correlate web access logs with administrator session IDs to identify payload execution on admin or front-end pages.
Monitoring Recommendations
- Enable WordPress activity logging to capture plugin settings changes and administrator authentication events.
- Deploy a Content Security Policy that restricts inline scripts and unauthorized external script sources on admin pages.
- Monitor for sudden spikes in administrator account creation, role changes, or siteurl and home option modifications.
How to Mitigate CVE-2024-10038
Immediate Actions Required
- Update the WP-Strava plugin to a version later than 2.12.1 as soon as the vendor publishes a patched release.
- Audit all administrator and Super Admin accounts and remove any that are unexpected or inactive.
- Rotate administrator passwords and invalidate active WordPress sessions after patching.
- Inspect WP-Strava settings for stored HTML or JavaScript payloads and remove any injected content.
Patch Information
At the time of publication, no fixed version is identified in the NVD record for CVE-2024-10038. Monitor the WP-Strava GitHub repository and the Wordfence advisory for release updates. Apply the fixed version through the WordPress plugin updater once available.
Workarounds
- Restrict access to the WordPress admin interface by IP allowlist or VPN until the plugin is patched.
- Temporarily deactivate the WP-Strava plugin on multi-site networks and on single-site installations where unfiltered_html is disabled.
- Enforce multi-factor authentication for all administrator accounts to raise the bar for exploiting administrator-level access.
- Apply a Web Application Firewall rule that blocks requests containing <script> or event handler patterns to WP-Strava settings endpoints.
# Example: list and inspect WP-Strava stored options for injected payloads
wp option list --search='strava_*' --format=table
wp option get strava_client_secret
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

