Description
TypeBot is a chatbot builder tool. In versions prior to 3.16.0, the Typebot viewer (packages/embeds/js) renders anchor tags from rich text bubble content without filtering the javascript: URI scheme. A bot author can set a link URL to javascript:PAYLOAD, which executes in the visitor's browser context when clicked. Since the viewer is typically embedded in a third-party site, the attacker's JavaScript runs in the host page's origin and can exfiltrate cookies and session tokens. This can result in any authenticated Typebot user (including those on the free tier) being able to create a bot with this payload. Shared bots are publicly accessible — no victim authentication is required. This issue has been resolved in version 3.16.0.
Problem types
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
References
github.com/...bot.io/security/advisories/GHSA-hqmv-v56g-4m47
github.com/...bot.io/security/advisories/GHSA-hqmv-v56g-4m47
github.com/...ommit/2c3fc7267a5e1529ba4b1a2ab4f1edb3e3b8990b
github.com/baptisteArno/typebot.io/releases/tag/v3.16.0