CVE-2021-46708 Spoofing attack in swagger-ui-dist
Remote attackers can hijack user click actions in swagger-ui-dist by luring victims to malicious sites, potentially enabling further attacks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-46708?
CVE-2021-46708 is a medium-severity vulnerability in n/a, published on 11 Mar 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-1021
Which versions are affected by CVE-2021-46708?
2 open source packages ship an affected version, including swagger-ui-dist. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
swagger-ui-dist npm | All versions | 4.1.3 |
swagger-ui-dist npm | All versions | 4.1.3 |
Products include Smartbear Swagger-Ui-Dist.
How do I fix CVE-2021-46708?
Upgrade swagger-ui-dist to 4.1.3 or later.
Is CVE-2021-46708 being exploited?
There is no known exploitation of CVE-2021-46708 in the wild and no public exploit code.
Sources
Also known as CLSA-2026-1786375655, GHSA-6c9x-mj3g-h47x.