{"id":"CVE-2021-23342","published":"2021-02-19T16:35:15Z","modified":"2024-09-16T22:39:56Z","title":"Cross-site Scripting (XSS)","vendor":null,"product":null,"tier":"tail","description":{"text":"This affects the package docsify before 4.12.0. It is possible to bypass the remediation done by CVE-2020-7680 and execute malicious JavaScript through the following methods 1) When parsing HTML from remote URLs, the HTML code on the main page is sanitized, but this sanitization is not taking place in the sidebar. 2) The isURL external check can be bypassed by inserting more “////” characters","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L/E:P/RL:U/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01677,"percentile":0.77465,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-DOCSIFY-1066017","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076593","tags":["x_refsource_MISC"]},{"url":"https://github.com/docsifyjs/docsify/commit/ff2a66f12752471277fe81a64ad6c4b2c08111fe","tags":["x_refsource_MISC"]},{"url":"http://seclists.org/fulldisclosure/2021/Feb/71","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://packetstormsecurity.com/files/161495/docsify-4.11.6-Cross-Site-Scripting.html","tags":["x_refsource_MISC"]}],"priority":{"score":26.5,"factors":[{"name":"EPSS percentile","points":15.49},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.02}]},"affectedVersions":[{"vendor":"n/a","product":"docsify","versions":[">= unspecified, < 4.12.0"]}],"affected":[{"ecosystem":"npm","package":"docsify","vulnerableRanges":["<4.12.0"],"patched":["4.12.0"],"from":["GHSA-2mm9-c2fx-c7m4"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting vulnerability in the docsify package, affecting versions before 4.12.0, where the sanitization applied to HTML parsed from remote URLs is not enforced in the sidebar and an external-URL check can be bypassed by inserting extra slash characters. An attacker can execute malicious JavaScript by supplying crafted content through these paths, requiring only network access with no authentication or user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:31:20Z"},"euvd":{"id":"EUVD-2021-0585","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/161495/docsify-4.11.6-Cross-Site-Scripting.html"],"lineage":{"familyId":"fam-docsify-cve-2020-7680","parents":[{"from":"CVE-2020-7680","to":"CVE-2021-23342","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"It is possible to bypass the remediation done by CVE-2020-7680 and execute malicious JavaScript through the following methods 1) When parsing HTML from remote URLs, the HTML code on the main page is sanitized, but this sanitization is not…","from":"CVE.org","in":"CVE-2021-23342"},{"kind":"version-step","provenance":"source","package":"npm:docsify","fromFixed":"4.11.4","toFixed":"4.12.0","daysApart":214},{"kind":"similar","provenance":"machine","score":0.35,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2020-7680","published":"2020-07-20","fixed":"4.11.4","kev":false},{"cve":"CVE-2021-23342","published":"2021-02-19","fixed":"4.12.0","kev":false},{"cve":"CVE-2021-30074","published":"2021-04-02","fixed":"4.12.2","kev":false,"link":{"from":"CVE-2021-23342","to":"CVE-2021-30074","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:docsify","fromFixed":"4.12.0","toFixed":"4.12.2","daysApart":42}]}}],"package":"npm:docsify"}}