{"id":"GHSA-5h7x-68wj-jhwc","summary":"Docsify vulnerable to cross-site scripting due to mishandled encoding","details":"docsify versions 4.12.1 and earlier are vulnerable to cross-site scripting (XSS) because the search component does not appropriately encode Code Blocks and mishandles the `\"` character.","aliases":["CVE-2021-30074"],"modified":"2023-11-08T04:05:44.435042Z","published":"2022-05-24T17:46:27Z","database_specific":{"github_reviewed_at":"2023-10-19T18:36:33Z","nvd_published_at":"2021-04-02T21:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30074"},{"type":"WEB","url":"https://github.com/docsifyjs/docsify/issues/1549"},{"type":"WEB","url":"https://github.com/docsifyjs/docsify/pull/1551"},{"type":"WEB","url":"https://github.com/docsifyjs/docsify/commit/c24f7f6f0b87a87f6dd3755f69eb0969ebb029c9"},{"type":"PACKAGE","url":"https://github.com/docsifyjs/docsify"}],"affected":[{"package":{"name":"docsify","ecosystem":"npm","purl":"pkg:npm/docsify"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.12.2"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 4.12.1","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-5h7x-68wj-jhwc/GHSA-5h7x-68wj-jhwc.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"}]}