CVE-2021-46708
MEDIUM 6.1CVSS 3.1Spoofing attack in swagger-ui-dist
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.
- Published
- 11 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-1021
- Also known as
- GHSA-6c9x-mj3g-h47x
- Sources
- NVDJSONOSV GHSA-6c9x-mj3g-h47xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smartbear | swagger-ui-distcpe:2.3:a:smartbear:swagger-ui-dist:*:*:*:*:*:node.js:*:* |
< 4.1.3 | 4.1.3 |
| OSV | npm | swagger-ui-dist | < 4.1.3 | 4.1.3 |
References
- https://security.netapp.com/advisory/ntap-20220407-0004/ · Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-SWAGGERUIDIST-2314884 · Patch, Third Party Advisory, WEB
- https://www.npmjs.com/package/swagger-ui-dist/v/4.1.3 · Product, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-46708 · ADVISORY
- https://github.com/swagger-api/swagger-ui · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 11 Mar 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 12 Mar 2022)