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

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-20T00:00:00.000Z
- Modified: 2026-09-10T03:50:46.819Z
- Also known as: GHSA-fvhg-p4hf-79x3
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- @cyntler/react-doc-viewer (npm): up to 1.17.1

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/walidriouah/CVE-2026-30691> (exploit, web)
- <https://github.com/cyntler/react-doc-viewer/issues/317> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-30691> (advisory)
- <https://github.com/cyntler/react-doc-viewer> (package)

## Sources

- CVE List: [CVE-2026-30691](https://www.cve.org/CVERecord?id=CVE-2026-30691), CVE Terms of Use, modified 2026-05-20
- GitHub Advisory Database: [GHSA-fvhg-p4hf-79x3](https://github.com/advisories/GHSA-fvhg-p4hf-79x3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-30691](https://nvd.nist.gov/vuln/detail/CVE-2026-30691), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-30691 · Whole record: https://cve.day/CVE-2026-30691.json · Rebuilt by cve.day 2026-11-25T22:59:22.057Z
