CVE-2026-47099: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in storybookjs telejson
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.
AI Analysis
Technical Summary
CVE-2026-47099 describes a DOM-based XSS vulnerability in storybookjs's TeleJSON library before version 6.0.0. The parse() function's custom reviver passes the constructor name directly to new Function() without sanitization, enabling attackers to inject arbitrary JavaScript code. Attackers can exploit this by sending a crafted JSON payload containing a malicious _constructor-name_ property, which is then executed in the application context, for example through postMessage in cross-frame communication scenarios.
Potential Impact
An attacker can execute arbitrary JavaScript code within the context of the vulnerable application by exploiting this XSS vulnerability. This could lead to unauthorized script execution affecting the confidentiality and integrity of the application environment. However, the CVSS score of 2.1 and the low severity rating indicate that exploitation requires user interaction and the impact is limited in scope.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch information is currently available. Until a patch is released, avoid parsing untrusted JSON payloads with TeleJSON's parse() function, especially in contexts involving cross-frame communication such as postMessage. Monitor vendor channels for updates and apply official fixes once available.
CVE-2026-47099: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in storybookjs telejson
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.
CVSS v4.0
Score 2.1low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-47099 describes a DOM-based XSS vulnerability in storybookjs's TeleJSON library before version 6.0.0. The parse() function's custom reviver passes the constructor name directly to new Function() without sanitization, enabling attackers to inject arbitrary JavaScript code. Attackers can exploit this by sending a crafted JSON payload containing a malicious _constructor-name_ property, which is then executed in the application context, for example through postMessage in cross-frame communication scenarios.
Potential Impact
An attacker can execute arbitrary JavaScript code within the context of the vulnerable application by exploiting this XSS vulnerability. This could lead to unauthorized script execution affecting the confidentiality and integrity of the application environment. However, the CVSS score of 2.1 and the low severity rating indicate that exploitation requires user interaction and the impact is limited in scope.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch information is currently available. Until a patch is released, avoid parsing untrusted JSON payloads with TeleJSON's parse() function, especially in contexts involving cross-frame communication such as postMessage. Monitor vendor channels for updates and apply official fixes once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-18T19:22:26.747Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0e0cd2ba1db473629e7991
Added to database: 05/20/2026, 19:34:42 UTC
Last enriched: 07/15/2026, 10:03:32 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 79
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.