Hacking AI with Markdown: How We Triggered XSS in DeepSeek’s Ch
The researcher found that DeepSeek's chat rendering engine processed crafted Markdown payloads without adequate sanitisation, allowing injected content to be rendered as HTML. An attacker could use this to trigger cross-site scripting through the chatbot's message display.
AI-generated chat messages are becoming a cornerstone of modern digital interaction. From customer support to creative writing, platforms like ChatGPT, Gemini, and DeepSeek have quickly gained popularity.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the chat rendering engine converted Markdown to HTML without properly sanitising the resulting markup before displaying it.
Impact
An attacker could potentially run script in the context of the chat interface, though the text gives no detail on what that script could reach or whether any defence limited it.
What the attacker needed
Ability to send a chat message
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Markdown is a simple way of writing formatted text, for example using asterisks for bold. If a website turns that text into HTML without cleaning it first, someone can sneak in code that runs in another person's browser, which is called cross-site scripting. Here the chat messages were turned into HTML in a way that let such code through.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.