CVE-2020-7680
MEDIUM6.1EPSS 3.2%Cross-site Scripting in docsify
Published: 5/18/2021Modified: 3/13/2026
Also known as:GHSA-qpqh-46qj-vwcw
Description
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.
Affected packages (1)
- npm/docsifyfrom 0, < 4.11.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2020-7680
- WEBhttp://packetstormsecurity.com/files/158515/Docsify.js-4.11.4-Cross-Site-Scripting.html
- WEBhttp://packetstormsecurity.com/files/161495/docsify-4.11.6-Cross-Site-Scripting.html
- WEBhttp://seclists.org/fulldisclosure/2021/Feb/71
- WEBhttps://github.com/docsifyjs/docsify/issues/1126
- WEBhttps://github.com/docsifyjs/docsify/pull/1128
- WEBhttps://snyk.io/vuln/SNYK-JS-DOCSIFY-567099