CVE-2026-30691 Details
Description
Cross-Site Scripting (XSS) vulnerability in @cyntler/react-doc-viewer v1.17.1 allows remote attackers to execute arbitrary JavaScript via a crafted .txt file. The TXTRenderer component fails to sanitize file content and explicitly casts raw data as a ReactNode
A Cross-Site Scripting (XSS) vulnerability exists in the @cyntler/react-doc-viewer package, specifically in version 1.17.1. The issue arises in the TXTRenderer component, which processes raw content from .txt files by directly casting it as a ReactNode without proper sanitization. This flaw allows remote attackers to execute arbitrary JavaScript by uploading a maliciously crafted .txt file.
To address this vulnerability, sanitize the input using a library like DOMPurify before rendering, or avoid casting raw strings to ReactNode. For example, import DOMPurify, sanitize the file data, and use dangerouslySetInnerHTML to render the sanitized content.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 20, 2026CISA-ADP
Assessed May 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/walidriouah/CVE-2026-30691 | CISA-ADP | AdvisoryExploitRemedy |
| https://github.com/cyntler/react-doc-viewer/issues/317 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/walidriouah/CVE-2026-30691 | [email protected] | AdvisoryExploitRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| cyntler/react-doc-viewer | 1.17.1 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 20, 2026 | CVE Modified | CISA-ADP |
| May 20, 2026 | New CVE Received | [email protected] |
Volerion