# CVE-2021-46708: Spoofing attack in swagger-ui-dist

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.49%, higher than 74% of CVEs (2026-11-30)
- Published: 2022-03-11T06:47:56.000Z
- Modified: 2026-06-17T04:15:24.580Z
- Also known as: GHSA-6c9x-mj3g-h47x
- Weaknesses: CWE-1021
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- swagger-ui-dist (npm): before 4.1.3
- smartbear swagger-ui-dist: before 4.1.3

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <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://security.netapp.com/advisory/ntap-20220407-0004/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-46708> (advisory)
- <https://github.com/swagger-api/swagger-ui> (package)
- <https://security.netapp.com/advisory/ntap-20220407-0004> (web)

## Sources

- CVE List: [CVE-2021-46708](https://www.cve.org/CVERecord?id=CVE-2021-46708), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-6c9x-mj3g-h47x](https://github.com/advisories/GHSA-6c9x-mj3g-h47x), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-46708](https://nvd.nist.gov/vuln/detail/CVE-2021-46708), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46708 · Whole record: https://cve.day/CVE-2021-46708.json · Rebuilt by cve.day 2026-11-25T22:58:07.171Z
