CVE-2026-30691
JSON

6.1medium

@cyntler/react-doc-viewer's TXTRenderer fails to sanitize file content and explicitly casts raw data as a ReactNode

Severity
6.1medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-fvhg-p4hf-79x3

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

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
@cyntler/react-doc-viewer (npm)up to 1.17.1GitHub Advisory Database

All scores

CISA-ADP6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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

GitHub Advisory Database

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.

NVD (es)

Vulnerabilidad de cross-site scripting (XSS) en @cyntler/react-doc-viewer v1.17.1 permite a atacantes remotos ejecutar JavaScript arbitrario a través de un archivo .txt manipulado. El componente TXTRenderer no logra sanear el contenido del archivo y convierte explícitamente datos sin procesar como un ReactNode.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-30691 changed 2026-05-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-fvhg-p4hf-79x3 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-30691 changed 2026-07-23Public domain