{"id":"CVE-2021-30074","aliases":["CVE-2021-30074","GHSA-5h7x-68wj-jhwc"],"related":[],"kind":"vulnerability","state":"published","title":"Docsify vulnerable to cross-site scripting due to mishandled encoding","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"docsify versión 4.12.1, está afectado por una vulnerabilidad de tipo Cross Site Scripting (XSS) porque el componente search no codifica apropiadamente unos Code Blocks y maneja inapropiadamente el carácter \".","source":"nvd"}],"published":"2021-04-02T20:40:10.000Z","modified":"2026-06-17T03:49:40.060Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.12.2"}],"ecosystem":"npm","package":"docsify","purl":"pkg:npm/docsify","source":"ghsa"},{"ranges":[{"status":"affected","version":"4.12.1"}],"vendor":"docsifyjs","product":"docsify","cpe":"cpe:2.3:a:docsifyjs:docsify:4.12.1:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/docsifyjs/docsify/issues/1549","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30074","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/docsifyjs/docsify/pull/1551","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/docsifyjs/docsify/commit/c24f7f6f0b87a87f6dd3755f69eb0969ebb029c9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/docsifyjs/docsify","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-30074","url":"https://www.cve.org/CVERecord?id=CVE-2021-30074","licence":"CVE Terms of Use","modified":"2024-08-03T22:24:59.234Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5h7x-68wj-jhwc","url":"https://github.com/advisories/GHSA-5h7x-68wj-jhwc","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:44.435Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-30074","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30074","licence":"Public domain","modified":"2026-06-17T03:49:40.060Z"}],"updatedAt":"2026-11-25T22:58:00.597Z","epss":{"score":0.00785,"percentile":0.57277,"date":"2026-12-01T12:00:22.000Z"}}