{"id":"CVE-2026-30691","aliases":["EUVD-2026-31207","GHSA-fvhg-p4hf-79x3"],"status":"published","title":"@cyntler/react-doc-viewer's TXTRenderer fails to sanitize file content and explicitly casts raw data as a ReactNode","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","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.00298,"percentile":0.22782,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-79"],"published":"2026-05-20T00:00:00Z","modified":"2026-09-10T03:50:46Z","exploits":[{"source":"pocgithub","id":"walidriouah/CVE-2026-30691","title":"walidriouah/CVE-2026-30691","date":"2026-05-19","url":"https://github.com/walidriouah/CVE-2026-30691"}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@cyntler/react-doc-viewer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.17.1"}]}]},{"source":"osv","ecosystem":"npm","package":"@cyntler/react-doc-viewer","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.17.1"}]}]}],"references":[{"url":"https://github.com/cyntler/react-doc-viewer/issues/317","tags":["web"]},{"url":"https://github.com/walidriouah/CVE-2026-30691","tags":["exploit","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30691","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-fvhg-p4hf-79x3"},{"url":"https://github.com/cyntler/react-doc-viewer","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-30691","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","status":"published","published":"2026-05-20T00:00:00Z","modified":"2026-05-20T17:50:41.324Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"adp"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T13:44:07.200604Z"}],"euvd":[{"id":"EUVD-2026-31207","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","status":"published","published":"2026-05-20T00:00:00Z","modified":"2026-05-20T17:50:41Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T18:21:14.344818Z"}],"ghsa":[{"id":"GHSA-fvhg-p4hf-79x3","title":"@cyntler/react-doc-viewer's TXTRenderer fails to sanitize file content and explicitly casts raw data as a ReactNode","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.","status":"published","published":"2026-05-20T18:31:36Z","modified":"2026-06-11T13:28:17Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:40:26.12116Z"}],"nvd":[{"id":"CVE-2026-30691","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","status":"published","published":"2026-05-20T18:16:26.76Z","modified":"2026-07-23T12:10:00.11Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:12:19.752984Z"}],"osv":[{"id":"GHSA-fvhg-p4hf-79x3","title":"@cyntler/react-doc-viewer's TXTRenderer fails to sanitize file content and explicitly casts raw data as a ReactNode","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.","status":"published","published":"2026-05-20T18:31:36Z","modified":"2026-09-10T03:50:46.819535126Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:46.760785Z"}]}}
