Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-47099 EUVD-2026-31150GHSA-ccgf-5rwj-j3hv

TeleJSON < 6.0.0 DOM-based XSS via parse() Function

Published May 20, 2026 · Updated Nov 8, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
storybookjs telejson < 6.0.0 6.0.0

Affected packages

EcosystemPackageAffectedFixedRecord
npm telejson < 6.0.0 6.0.0 GHSA-ccgf-5rwj-j3hv

References