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.
What to do
- Apply the vendor's security update for Swagger-ui-dist.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| smartbear | swagger-ui-dist | < 4.1.3 |
Official sources
References
Links published by the sources. Open them with care.
- security.netapp.com Third Party Advisory
- security.snyk.io Patch Third Party Advisory
- www.npmjs.com Product Third Party Advisory