Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. docsify
  4. ›
  5. CVE-2021-23342

CVE-2021-23342: Cross-site Scripting

February 19, 2021 (updated February 25, 2021)

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

References

  • nvd.nist.gov/vuln/detail/CVE-2021-23342

Code Behaviors & Features

Detect and mitigate CVE-2021-23342 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.12.0

Fixed versions

  • 4.12.0

Solution

Upgrade to version 4.12.0 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/docsify/CVE-2021-23342.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:58 +0000.