CVE-2020-7680

MEDIUM

docsify < 4.11.4 - Cross-Site Scripting via Fragment Identifier

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2020-7680. PoCs published by Amin Sharifi.

AI-analyzed exploit summary This exploit demonstrates a DOM-based XSS vulnerability in Docsify.js 4.11.4 by leveraging fragment identifiers to load external URLs and render arbitrary JavaScript/HTML. The PoC uses a Flask server to host a malicious README.md file with an XSS payload, which is then rendered by the target Docsify.js application.

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.

Exploits (1)

exploitdb WORKING POC
by Amin Sharifi · textwebappsmultiple
https://www.exploit-db.com/exploits/48681

This exploit demonstrates a DOM-based XSS vulnerability in Docsify.js 4.11.4 by leveraging fragment identifiers to load external URLs and render arbitrary JavaScript/HTML. The PoC uses a Flask server to host a malicious README.md file with an XSS payload, which is then rendered by the target Docsify.js application.

Classification
Working Poc 100%
Attack Type
Xss
Complexity
Trivial
Reliability
Reliable
Target: Docsify.js 4.11.4
No auth needed
Prerequisites: A server to host the malicious README.md file with CORS headers enabled
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (6)

Core 6
Core References
Third Party Advisory x_refsource_misc
https://github.com/docsifyjs/docsify/issues/1126
Patch, Third Party Advisory x_refsource_misc
https://github.com/docsifyjs/docsify/pull/1128
Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-DOCSIFY-567099
Exploit, Third Party Advisory, VDB Entry x_refsource_misc
http://packetstormsecurity.com/files/158515/Docsify.js-4.11.4-Cross-Site-Scripting.html
Mailing List, Third Party Advisory mailing-list x_refsource_fulldisc
http://seclists.org/fulldisclosure/2021/Feb/71

Scores

CVSS v3 6.1
EPSS 0.0316
EPSS Percentile 87.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Details

CWE
CWE-79
Status published
Products (2)
docsifyjs/docsify < 4.11.4
npm/docsify 0 - 4.11.4npm
Published Jul 20, 2020
Tracked Since Feb 18, 2026