---
id: CVE-2026-30691
title: >-
  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
summary: >-
  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 …
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
published: '2026-05-20'
updated: '2026-07-23'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-30691'
references:
  - url: 'https://github.com/cyntler/react-doc-viewer/issues/317'
    label: cve@mitre.org
  - url: 'https://github.com/walidriouah/CVE-2026-30691'
    label: cve@mitre.org
  - url: 'https://github.com/walidriouah/CVE-2026-30691'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - exploit-available
epss: 0.00313
epssPercentile: 0.21652
ingestedAt: '2026-07-23T12:17:55.642Z'
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/walidriouah/CVE-2026-30691'
  checkedAt: '2026-09-26T09:05:41.574Z'
exploitAvailable: true
---

## Overview

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

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
