CVE-2021-46708
JavaScript vulnerability analysis and mitigation

Overview

The swagger-ui-dist package before version 4.1.3 for Node.js contains a vulnerability that allows remote attackers to hijack clicking actions of victims. The vulnerability was assigned CVE-2021-46708 and was disclosed in March 2022 (NVD, CVE).

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 vulnerability is classified under CWE-1021 (Improper Restriction of Rendered UI Layers or Frames). The issue affects the swagger-ui-dist package's handling of user interface elements, potentially allowing unauthorized frame window operations (NVD).

Impact

When successfully exploited, this vulnerability could lead to the disclosure of sensitive information and allow attackers to hijack victim's click actions. The attacker could potentially launch further attacks against the victim through this compromised interaction (NVD, Snyk).

Exploitability

The vulnerability requires user interaction and can be exploited by persuading a victim to visit a malicious website. Snyk has indicated the existence of a proof-of-concept or detailed explanation of how to exploit this vulnerability (Snyk).

Mitigation and workarounds

The recommended mitigation is to upgrade the swagger-ui-dist package to version 4.1.3 or higher. This version contains the necessary security fixes to address the vulnerability (NPM, Snyk).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77415CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77414CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77413CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-63421HIGH7.5
  • JavaScript logoJavaScript
  • @keystone-6/core
NoYesAug 21, 2026
CVE-2026-53509MEDIUM5.7
  • JavaScript logoJavaScript
  • @aborruso/ckan-mcp-server
NoYesAug 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

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