Skip to content
MediumVulnerability

GHSA-hqmv-v56g-4m47: Typebot.io has stored XSS via `javascript`: URI in text bubble links — bot author executes JS on visitors' browsers

Published
Record updated
View JSON
Affected
  • @typebot.io/js < 0.10.1
Fixed in
0.10.1
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

The Typebot viewer (packages/embeds/js) renders anchor tags from rich text bubble content without filtering the javascript: URI scheme. A bot author who sets a link URL to javascript:PAYLOAD gets that script run in a visitor's browser when the link is clicked, and because the viewer is usually embedded in third-party sites, the script runs in the host page's origin and can read cookies and session tokens. The flaw is in PlateBlock.tsx line 32, with the same issue in ImageBubble.tsx line 102 for image link wrapping.

Mitigation

Proposed fix: filter javascript: URIs before rendering anchor tags, for example by replacing them with '#' using a safeUrl helper, or use a URL allowlist permitting only https:, http:, mailto: and tel:.