PT-2026-21606 · Unknown · Markdownrenderer.Jsx
Small-Lovely-Cat
·
Published
2026-02-23
·
Updated
2026-03-03
·
CVE-2026-25802
CVSS v3.1
7.6
High
| Vector | AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:L |
Name of the Vulnerable Software and Affected Versions
New API versions prior to 0.10.8-alpha.9
Description
The software contains a potential unsafe operation in the
MarkdownRenderer.jsx component. This allows for Cross-Site Scripting (XSS) when the model outputs items containing <script> tags. The issue arises from using dangerouslySetInnerHTML to preview HTML generated by the model, which can trigger malicious scripts. A proof-of-concept demonstrates that prompting the model to generate a script can redirect the browser to google.com without user interaction. The chat history containing the XSS script is stored, potentially re-triggering the script upon revisiting the page. The impact includes potential malicious activity targeting users of the playground, especially if the model API is compromised to output unintended code. The vulnerable code resides on lines 212-231 of MarkdownRenderer.jsx.Recommendations
Versions prior to 0.10.8-alpha.9 should be updated to version 0.10.8-alpha.9 or later. As a temporary workaround, consider placing the preview within an iframe sandbox. Dangerous HTML strings should be purified before rendering.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Markdownrenderer.Jsx