Intel

AIKIDO-2026-10330

@cognigy/chat-components is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 10, 2026

65

Medium Risk

This Affects:

JS@cognigy/chat-components
0.0.1 - 0.67.0
Fixed in 0.68.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package do not sanitize the inner content of iframe srcdoc attributes. DOMPurify sanitizes the outer HTML but treats srcdoc as a plain string, so an attacker can inject markup such as <iframe srcdoc="<script>...</script>"></iframe> to execute JavaScript in the page context or mount phishing content in the Transcript Editor. The patch adds a post-processing step that sanitizes each srcdoc value with DOMPurify and introduces iterative sanitization until output stabilizes to reduce nested-tag bypasses.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@cognigy/chat-components is vulnerable to Cross-site Scripting (XSS) in versions 0.0.1 - 0.67.0.

How to fix this

Upgrade the @cognigy/chat-components library to the patch version.