GitHub Advisoryadvisory · npm

GHSA-2mm9-c2fx-c7m4 Docsify XSS Vulnerability

MEDIUM Published 2021-03-01 Modified 2023-09-13 Official page ↗
Aliases
CVE-2021-23342
Ecosystem
npm
Packages
docsify
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2021-02-24

Affected packages

• npm docsify: < 4.12.0 → fixed in 4.12.0

Description

This affects the package docsify before 4.12.0. It is possible to bypass the remediation done by CVE-2020-7680 and execute malicious JavaScript through the following methods 1) When parsing HTML from remote URLs, the HTML code on the main page is sanitized, but this sanitization is not taking place in the sidebar. 2) The isURL external check can be bypassed by inserting more `////` characters

Related

Alias · CVE (1)

  • CVE-2021-23342 This affects the package docsify before 4.12.0. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References