Advisory

GHSA-qpqh-46qj-vwcw

Also known as: CVE-2020-7680, SNYK-JS-DOCSIFY-567099

Summary

Cross-site Scripting in docsify

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-18 01:53 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

docsify

npm · All systems

Affected

  • introduced 0, fixed 4.11.4 (semver)

Fixed versions

4.11.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences