CVE-2026-47099
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 b…
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | telejson | < 6.0.0 | 6.0.0 |
Affected products
| Product | Affected versions |
|---|---|
| TeleJSON | before 6.0.0 |
Versions were read from the advisory text. No structured product data has been published for this record yet.
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/Niccolo10/Security-Advisories/blob/main/CVE-2026-47099/cve-2026-47099.md
- https://github.com/storybookjs/telejson/security/advisories/GHSA-ccgf-5rwj-j3hv
- https://www.vulncheck.com/advisories/telejson-dom-based-xss-via-parse-function
- https://github.com/advisories/GHSA-ccgf-5rwj-j3hv
- https://nvd.nist.gov/vuln/detail/CVE-2026-47099