CVE-2021-46708 json
Spoofing attack in swagger-ui-dist
published 2022-03-11 4 y ago modified 2026-06-17 4 mo ago also GHSA-6c9x-mj3g-h47x , EUVD-2022-1341
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm swagger-ui-dist 4.1.3
- smartbear swagger-ui-dist 4.1.3
Exploit prediction
1.49% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | swagger-ui-dist | <4.1.3 |
4.1.3 |
Classification
- Weakness
-
- CWE-1021 Improper Restriction of Rendered UI Layers or Frames
References
-
security.snyk.io
/vuln/SNYK-JS-SWAGGERUIDIST-2314884
web, patch, third-party-advisory
-
npmjs.com
/package/swagger-ui-dist/v/4.1.3
web, product, third-party-advisory
-
security.netapp.com
/advisory/ntap-20220407-0004/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-46708
advisory
-
github.com
/swagger-api/swagger-ui
package
-
security.netapp.com
/advisory/ntap-20220407-0004
web
Sources
- CVE List CVE-2021-46708
- GitHub Advisory GHSA-6c9x-mj3g-h47x
- NVD CVE-2021-46708
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.