Skip to content

Cross-site Scripting in docsify

Moderate severity GitHub Reviewed Published May 18, 2021 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

npm docsify (npm)

Affected versions

< 4.11.4

Patched versions

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.

References

Published by the National Vulnerability Database Jul 20, 2020
Reviewed May 10, 2021
Published to the GitHub Advisory Database May 18, 2021
Last updated Feb 1, 2023

Severity

Moderate
6.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weaknesses

CVE ID

CVE-2020-7680

GHSA ID

GHSA-qpqh-46qj-vwcw

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.