CVE-2025-51859
MEDIUMChaindesk thru 2025-05-26 - Stored Cross-Site Scripting via AI Agent System Prompt
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2025-51859. PoCs published by Secsys-FDU.
AI-analyzed exploit summary This repository provides a detailed technical analysis of CVE-2025-51859, a Stored XSS vulnerability in Chaindesk's AI agent chat functionality, combined with an IDOR vulnerability. The writeup explains how an attacker can craft malicious AI agents to deliver XSS payloads via LLM-generated responses and exploit IDOR for unauthorized access.
Description
Stored Cross-Site Scripting (XSS) vulnerability in Chaindesk thru 2025-05-26 in its agent chat component. An attacker can achieve arbitrary client-side script execution by crafting an AI agent whose system prompt instructs the underlying Large Language Model (LLM) to embed malicious script payloads (e.g., SVG-based XSS) into its chat responses. When a user interacts with such a malicious agent or accesses a direct link to a conversation containing an XSS payload, the script executes in the user's browser. Successful exploitation can lead to the theft of sensitive information, such as JWT session tokens, potentially resulting in account hijacking.
Exploits (1)
This repository provides a detailed technical analysis of CVE-2025-51859, a Stored XSS vulnerability in Chaindesk's AI agent chat functionality, combined with an IDOR vulnerability. The writeup explains how an attacker can craft malicious AI agents to deliver XSS payloads via LLM-generated responses and exploit IDOR for unauthorized access.
References (1)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N