CVE-2021-30074: 
JavaScript vulnerability analysis and mitigation

Overview

docsify version 4.12.1 contains a Cross Site Scripting (XSS) vulnerability identified as CVE-2021-30074. The vulnerability exists in the search component which does not properly encode Code Blocks and mishandles the " character. This issue was discovered and disclosed on April 2, 2021 (NVD).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 6.1 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. The issue is classified as CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). The vulnerability specifically affects the search component's handling of code blocks and the " character, which can lead to XSS when rendering markdown content (NVD).

Impact

When exploited, this vulnerability could allow attackers to execute arbitrary JavaScript code in the context of the victim's browser. This could potentially lead to theft of sensitive information, session hijacking, or other client-side attacks (NVD).

Exploitability

The vulnerability can be triggered when a user searches for content containing specially crafted XSS payloads. The search component fails to properly sanitize the input, allowing JavaScript code that should be rendered as markdown to be executed instead (GitHub Issue).

Mitigation and workarounds

Users should upgrade to a version newer than docsify 4.12.1 that contains fixes for this vulnerability. If upgrading is not immediately possible, careful input validation and output encoding should be implemented when handling search queries (NVD).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-133867CRITICAL9.1
  • JavaScript logoJavaScript
  • @fastify/express
NoYesNov 21, 2026
CVE-2026-133250CRITICAL9.1
  • JavaScript logoJavaScript
  • @fastify/middie
NoYesNov 21, 2026
CVE-2026-133120CRITICAL9.1
  • JavaScript logoJavaScript
  • @fastify/express
NoYesNov 21, 2026
CVE-2026-133312MEDIUM5.3
  • JavaScript logoJavaScript
  • @fastify/rate-limit
NoYesNov 21, 2026
CVE-2026-133273LOW3.7
  • JavaScript logoJavaScript
  • @fastify/swagger-ui
NoYesNov 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management