Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. telejson
  4. ›
  5. GHSA-ccgf-5rwj-j3hv

GHSA-ccgf-5rwj-j3hv: TeleJSON: DOM XSS via unsanitised constructor name in `new Function()`

April 2, 2026

telejson versions prior to 6.0.0 (released 2022) are vulnerable to DOM-based Cross-Site Scripting (XSS) through unsafe deserialisation. Attacker-controlled input from the _constructor-name_ property in parsed JSON is passed directly to new Function() without sanitisation, allowing arbitrary JavaScript execution.

References

  • github.com/advisories/GHSA-ccgf-5rwj-j3hv
  • github.com/storybookjs/telejson
  • github.com/storybookjs/telejson/security/advisories/GHSA-ccgf-5rwj-j3hv

Code Behaviors & Features

Detect and mitigate GHSA-ccgf-5rwj-j3hv with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.0.0

Fixed versions

  • 6.0.0

Solution

Upgrade to version 6.0.0 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/telejson/GHSA-ccgf-5rwj-j3hv.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:20 +0000.