CVE-2026-47099: TeleJSON: DOM XSS via unsanitised constructor name in `new Function()`
(updated )
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/Niccolo10/Security-Advisories/blob/main/CVE-2026-47099/cve-2026-47099.md
- github.com/advisories/GHSA-ccgf-5rwj-j3hv
- github.com/storybookjs/telejson/security/advisories/GHSA-ccgf-5rwj-j3hv
- nvd.nist.gov/vuln/detail/CVE-2026-47099
- www.vulncheck.com/advisories/telejson-dom-based-xss-via-parse-function
Code Behaviors & Features
Detect and mitigate CVE-2026-47099 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →