{"id":"GHSA-fvhg-p4hf-79x3","summary":"@cyntler/react-doc-viewer's TXTRenderer fails to sanitize file content and explicitly casts raw data as a ReactNode","details":"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.","aliases":["CVE-2026-30691"],"modified":"2026-09-10T03:50:46.819535126Z","published":"2026-05-20T18:31:36Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-06-11T13:28:16Z","nvd_published_at":"2026-05-20T18:16:26Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30691"},{"type":"WEB","url":"https://github.com/cyntler/react-doc-viewer/issues/317"},{"type":"PACKAGE","url":"https://github.com/cyntler/react-doc-viewer"},{"type":"WEB","url":"https://github.com/walidriouah/CVE-2026-30691"}],"affected":[{"package":{"name":"@cyntler/react-doc-viewer","ecosystem":"npm","purl":"pkg:npm/%40cyntler/react-doc-viewer"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.17.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-fvhg-p4hf-79x3/GHSA-fvhg-p4hf-79x3.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}