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
TeleJSON versions before 6.0.0 contain a DOM-based XSS vulnerability in the parse() function. The vulnerability occurs because the custom reviver function uses the constructor name from JSON input directly in new Function() without sanitization. This allows attackers to inject arbitrary JavaScript code when the library recreates object prototypes from JSON payloads. Attackers can exploit this via cross-frame communication mechanisms such as postMessage to execute scripts within the application context. The vulnerability has a CVSS 4.0 score of 2.1, reflecting low severity due to required user interaction and limited impact scope.
Potential Impact
Successful exploitation allows execution of arbitrary JavaScript within the context of the affected application, potentially leading to script injection attacks. However, the low CVSS score and requirement for user interaction reduce the overall risk. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid processing 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 patches promptly 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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
TeleJSON versions before 6.0.0 contain a DOM-based XSS vulnerability in the parse() function. The vulnerability occurs because the custom reviver function uses the constructor name from JSON input directly in new Function() without sanitization. This allows attackers to inject arbitrary JavaScript code when the library recreates object prototypes from JSON payloads. Attackers can exploit this via cross-frame communication mechanisms such as postMessage to execute scripts within the application context. The vulnerability has a CVSS 4.0 score of 2.1, reflecting low severity due to required user interaction and limited impact scope.
Potential Impact
Successful exploitation allows execution of arbitrary JavaScript within the context of the affected application, potentially leading to script injection attacks. However, the low CVSS score and requirement for user interaction reduce the overall risk. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid processing 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 patches promptly 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: 5/20/2026, 7:34:42 PM
Last enriched: 5/20/2026, 8:03:52 PM
Last updated: 5/21/2026, 6:30:50 AM
Views: 6
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.