{"id":"CVE-2021-30074","aliases":["EUVD-2022-2591","GHSA-5h7x-68wj-jhwc"],"status":"published","title":"Docsify vulnerable to cross-site scripting due to mishandled encoding","description":"docsify 4.12.1 is affected by Cross Site Scripting (XSS) because the search component does not appropriately encode Code Blocks and mishandles the \" character.","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":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.00785,"percentile":0.56532,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2021-04-02T20:40:10Z","modified":"2026-10-20T10:53:45Z","fixes":[{"ecosystem":"npm","package":"docsify","fixed_in":["4.12.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"docsify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"4.12.1"},{"fixed":"4.12.2"}]}]},{"source":"osv","ecosystem":"npm","package":"docsify","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.12.2"}]}]}],"products":[{"vendor":"docsifyjs","product":"docsify"}],"references":[{"url":"https://github.com/docsifyjs/docsify/issues/1549","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30074","tags":["advisory"]},{"url":"https://github.com/docsifyjs/docsify/pull/1551","tags":["web"]},{"url":"https://github.com/docsifyjs/docsify/commit/c24f7f6f0b87a87f6dd3755f69eb0969ebb029c9","tags":["web"]},{"url":"https://github.com/advisories/GHSA-5h7x-68wj-jhwc"},{"url":"https://github.com/docsifyjs/docsify","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-30074","description":"docsify 4.12.1 is affected by Cross Site Scripting (XSS) because the search component does not appropriately encode Code Blocks and mishandles the \" character.","status":"published","published":"2021-04-02T20:40:10Z","modified":"2024-08-03T22:24:59.234Z","updated_at":"2026-11-02T14:33:01.852999Z"}],"euvd":[{"id":"EUVD-2022-2591","description":"docsify 4.12.1 is affected by Cross Site Scripting (XSS) because the search component does not appropriately encode Code Blocks and mishandles the \" character.","status":"published","published":"2021-04-02T20:40:10Z","modified":"2024-08-03T22:24:59Z","updated_at":"2026-11-03T03:24:42.48986Z"}],"ghsa":[{"id":"GHSA-5h7x-68wj-jhwc","title":"Docsify vulnerable to cross-site scripting due to mishandled encoding","description":"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.","status":"published","published":"2022-05-24T17:46:27Z","modified":"2023-10-19T18:37:42Z","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:37:08.847568Z"}],"nvd":[{"id":"CVE-2021-30074","description":"docsify 4.12.1 is affected by Cross Site Scripting (XSS) because the search component does not appropriately encode Code Blocks and mishandles the \" character.","status":"published","published":"2021-04-02T21:15:13.653Z","modified":"2026-06-17T03:49:40.06Z","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":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:51.197859Z"}],"osv":[{"id":"CVE-2021-30074","description":"docsify 4.12.1 is affected by Cross Site Scripting (XSS) because the search component does not appropriately encode Code Blocks and mishandles the \" character.","status":"published","published":"2021-04-02T21:15:13.653Z","modified":"2026-10-20T10:53:45.013820679Z","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-02T15:44:19.483607Z"},{"id":"GHSA-5h7x-68wj-jhwc","title":"Docsify vulnerable to cross-site scripting due to mishandled encoding","description":"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.","status":"published","published":"2022-05-24T17:46:27Z","modified":"2023-11-08T04:05:44.435042Z","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:38.553953Z"}]}}
