{"id":"CVE-2020-7680","published":"2020-07-20T15:22:13Z","modified":"2024-08-04T09:41:01Z","title":"docsify prior to 4.11.4 is susceptible to Cross-site Scripting (XSS)","vendor":null,"product":null,"tier":"tail","description":{"text":"docsify prior to 4.11.4 is susceptible to Cross-site Scripting (XSS). Docsify.js uses fragment identifiers (parameters after # sign) to load resources from server-side .md files. Due to lack of validation here, it is possible to provide external URLs after the /#/ (domain.com/#//attacker.com) and render arbitrary JavaScript/HTML inside docsify page.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.045,"percentile":0.91717,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/docsifyjs/docsify/issues/1126","tags":["x_refsource_MISC"]},{"url":"https://github.com/docsifyjs/docsify/pull/1128","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JS-DOCSIFY-567099","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/158515/Docsify.js-4.11.4-Cross-Site-Scripting.html","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":23.3,"factors":[{"name":"EPSS percentile","points":18.34},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2020-07-22"},"first":{"date":"2020-07-22","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/48681"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"docsify","versions":["All versions prior to 4.11.4"]}],"affected":[{"ecosystem":"npm","package":"docsify","vulnerableRanges":["<4.11.4"],"patched":["4.11.4"],"from":["GHSA-qpqh-46qj-vwcw"],"provenance":"source"}],"summary":{"text":"The flaw is a Cross-site Scripting (XSS) issue in docsify, affecting versions prior to 4.11.4, where fragment identifiers used to load server-side .md resources are not validated. An attacker who can get a victim to open a crafted link, such as one with an external URL placed after the /#/ fragment, can cause arbitrary JavaScript or HTML to render inside the docsify page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:09:38Z"},"euvd":{"id":"EUVD-2021-1169","exploited":false,"provenance":"source"},"exploits":[{"id":48681,"url":"https://www.exploit-db.com/exploits/48681","title":"Docsify.js 4.11.4 - Reflective Cross-Site Scripting","date":"2020-07-22","verified":false,"provenance":"source"}],"exploitRefs":["http://packetstormsecurity.com/files/158515/Docsify.js-4.11.4-Cross-Site-Scripting.html","http://packetstormsecurity.com/files/161495/docsify-4.11.6-Cross-Site-Scripting.html"],"lineage":{"familyId":"fam-docsify-cve-2020-7680","children":[{"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}],"package":"npm:docsify"}}