Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
Lifecycle Timeline
3Blast Radius
ecosystem impact- 45 npm packages depend on @cyntler/react-doc-viewer (43 direct, 2 indirect)
Ecosystem-wide dependent count for version 1.17.1.
DescriptionCVE.org
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
AnalysisAI
Stored/reflected Cross-Site Scripting in @cyntler/react-doc-viewer v1.17.1 allows unauthenticated remote attackers to execute arbitrary JavaScript in a victim's browser by supplying a crafted .txt file for rendering. The TXTRenderer component unsafely casts raw file content directly as a ReactNode without sanitization, bypassing React's default escaping and enabling HTML/script injection. A publicly available proof-of-concept exists; no confirmed active exploitation in CISA KEV at time of analysis.
Technical ContextAI
The affected library, @cyntler/react-doc-viewer v1.17.1 (an npm React component for in-browser document preview), includes a TXTRenderer sub-component responsible for rendering plain-text files. React normally escapes string content rendered to the DOM, but the TXTRenderer explicitly casts raw file buffer data as a ReactNode - a React type that accepts JSX elements and raw HTML structures - circumventing React's built-in XSS protections. This is a CWE-79 (Improper Neutralization of Input During Web Page Generation) flaw rooted in unsafe type coercion rather than a missing sanitization call. The scope is changed (S:C in the CVSS vector) because script execution escapes the document viewer component and can access the full browser origin context of the hosting application. CPE data provided is generic (n/a:n/a), so affected version scope is limited to what the description and GitHub issue confirm: v1.17.1.
RemediationAI
No vendor-released patched version is identified in the available intelligence data; absence of a confirmed fix version should not be interpreted as confirmation that no patch exists - check the upstream repository at https://github.com/cyntler/react-doc-viewer/issues/317 for a released fix before taking compensating action. Until a patched version is confirmed, the most effective compensating control is to disable or remove the TXTRenderer component from the viewer configuration, preventing .txt files from being rendered via the vulnerable code path (trade-off: loss of plain-text document preview capability). If TXTRenderer cannot be disabled, restrict the document viewer to only accept files from trusted, server-validated sources rather than allowing arbitrary user-supplied uploads. Additionally, deploying a Content Security Policy (CSP) header with a restrictive script-src directive on the hosting page can limit the impact of any injected script by preventing execution of inline scripts or restricting allowed script origins (trade-off: may break legitimate functionality if the application relies on inline scripts). Monitor the upstream GitHub repository and the POC repository at https://github.com/walidriouah/CVE-2026-30691 for patch releases.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today