Intel

AIKIDO-2026-269220

@docsearch/sidepanel-js is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 11, 2026

61

Medium Risk

This Affects:

JS@docsearch/sidepanel-js
4.4.0 - 4.6.3
Fixed in 4.7.0
Are you affected? Scan for Free

TL;DR

The package provides the DocSearch Ask AI sidepanel and bundles the DocSearch React UI that renders assistant-generated markdown answers as HTML. Before the fix, answer text was converted to HTML with marked and injected through dangerouslySetInnerHTML without sanitization, so raw HTML tags and unsafe link schemes in the answer were rendered verbatim. Content that reaches the assistant response, such as poisoned indexed documentation, can execute arbitrary JavaScript in the browser of a user viewing the answer. The fix routes markdown through a sanitizing pipeline that escapes raw HTML, allowlists code-fence language identifiers, and blocks unsafe URL schemes.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you have the Ask AI feature enabled.

Background info

@docsearch/sidepanel-js is vulnerable to Cross-Site Scripting (XSS) in versions 4.4.0 - 4.6.3.

How to fix this

Upgrade the @docsearch/sidepanel-js library to the patch version.