{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-30074","id":"CVE-2021-30074","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.","descriptionLong":"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.","published":"2021-04-02T20:40:10.000Z","updated":"2026-10-20T10:53:45.013820679Z","reserved":"2021-04-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"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","rating":"medium","source":"NVD"},"metrics":[{"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","rating":"medium","source":"NVD"},{"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","rating":"medium","source":"OSV"},{"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","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"docsify","purl":"pkg:npm/docsify","ranges":["<4.12.2"],"fixed":["4.12.2"],"advisory":"GHSA-5h7x-68wj-jhwc"}],"cwes":["CWE-79"],"aliases":["GHSA-5h7x-68wj-jhwc"],"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/docsifyjs/docsify","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00785,"epssPercentile":0.56871,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-30074","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30074","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-30074","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5h7x-68wj-jhwc","ok":true,"note":"GHSA-5h7x-68wj-jhwc"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-30074","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}