Live threats
VulnFox

All CVEs / Smartbear

CVE-2021-46708Smartbear Swagger-ui-dist

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
—
Auth required
No
Published
Mar 11, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1021
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

The swagger-ui-dist package before 4.1.3 for Node.js could allow a remote attacker to hijack the clicking action of the victim. By persuading a victim to visit a malicious Web site, a remote attacker could exploit this vulnerability to hijack the victim's click actions and possibly launch further attacks against the victim.

Original NVD text.

What to do

  1. Apply the vendor's security update for Swagger-ui-dist.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm swagger-ui-dist < 4.1.3 4.1.3 npm install swagger-ui-dist@4.1.3

Per OSV / GitHub Advisories (GHSA-6c9x-mj3g-h47x). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
smartbearswagger-ui-dist< 4.1.3

Official sources

References

Links published by the sources. Open them with care.