GHSA-fvhg-p4hf-79x3

Suggest an improvement
Source
https://github.com/advisories/GHSA-fvhg-p4hf-79x3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-fvhg-p4hf-79x3/GHSA-fvhg-p4hf-79x3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fvhg-p4hf-79x3
Aliases
  • CVE-2026-30691
Published
2026-05-20T18:31:36Z
Modified
2026-09-10T03:50:46Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-06-11T13:28:16Z",
    "nvd_published_at":  "2026-05-20T18:16:26Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / @cyntler/react-doc-viewer

Package

Name
@cyntler/react-doc-viewer
View open source insights on deps.dev
Purl
pkg:npm/%40cyntler/react-doc-viewer

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
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"