TeleJSON prior to 6.0.0 contains a DOM-based cross-site scripting vulnerability in the parse() function that allows attackers to execute arbitrary JavaScript by delivering a crafted JSON payload containing a malicious _constructor-name_ property value. The custom reviver passes the constructor name directly to new Function() without sanitization when recreating object prototypes, enabling attackers to inject arbitrary JavaScript through vectors such as postMessage in cross-frame communication contexts to achieve script execution within the application.

Project Subscriptions

Vendors Products
Storybookjs Subscribe
Telejson Subscribe
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-ccgf-5rwj-j3hv TeleJSON: DOM XSS via unsanitised constructor name in `new Function()`
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Thu, 21 May 2026 14:45:00 +0000


Thu, 21 May 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 21 May 2026 08:45:00 +0000

Type Values Removed Values Added
First Time appeared Storybookjs
Storybookjs telejson
Vendors & Products Storybookjs
Storybookjs telejson

Wed, 20 May 2026 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 20 May 2026 19:30:00 +0000

Type Values Removed Values Added
Description TeleJSON prior to 6.0.0 contains a DOM-based cross-site scripting vulnerability in the parse() function that allows attackers to execute arbitrary JavaScript by delivering a crafted JSON payload containing a malicious _constructor-name_ property value. The custom reviver passes the constructor name directly to new Function() without sanitization when recreating object prototypes, enabling attackers to inject arbitrary JavaScript through vectors such as postMessage in cross-frame communication contexts to achieve script execution within the application.
Title TeleJSON < 6.0.0 DOM-based XSS via parse() Function
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-05-21T14:14:26.387Z

Reserved: 2026-05-18T19:22:26.747Z

Link: CVE-2026-47099

cve-icon Vulnrichment

Updated: 2026-05-20T19:28:09.577Z

cve-icon NVD

Status : Deferred

Published: 2026-05-20T20:16:41.063

Modified: 2026-05-21T15:19:30.540

Link: CVE-2026-47099

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-05-20T18:00:44Z

Links: CVE-2026-47099 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-21T08:18:59Z

Weaknesses