Skip to content
HighVulnerability

GHSA-299v-8pq9-5gjq: New API has Potential XSS in its MarkdownRenderer component

Published
Record updated
View JSON
Affected
  • github.com/QuantumNous/new-api < 0.10.8-alpha.9
Fixed in
0.10.8-alpha.9
  • released February 6, 2026, 17 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

The New API project has a cross-site scripting flaw in its MarkdownRenderer.jsx component, where lines 212-231 use dangerouslySetInnerHTML to preview HTML that the model generates. A model response containing a script tag can run in the playground, and because chat records are stored, the script re-triggers whenever the page is reopened. The advisory notes the impact applies if the model API is altered to output unintended code.

Mitigation

The preview may be placed in an iframe sandbox, and dangerous HTML strings should be purified before rendering.