cors-anywhere@0.4.0 vulnerabilities

CORS Anywhere is a reverse proxy which adds CORS headers to the proxied request. Request URL is taken from the path

Direct Vulnerabilities

Known vulnerabilities in the cors-anywhere package. This does not include vulnerabilities belonging to this package’s dependencies.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable Version
  • C
Server-side Request Forgery (SSRF)

cors-anywhere is a CORS Anywhere is a reverse proxy which adds CORS headers to the proxied request. Request URL is taken from the path

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the proxy process. An attacker can access internal-only endpoints, retrieve sensitive metadata, interact with internal APIs, and potentially compromise cloud resources by sending crafted requests that induce the server to make HTTP requests to arbitrary targets.

##Mitigation

  1. Restricting the proxy to trusted origins or authentication

  2. whitelisting allowed target hosts

  3. Preventing access to link-local and internal IP ranges

  4. Removing support for unsafe HTTP methods/headers

  5. Enabling cloud provider mitigations

  6. Deploying network-level protections.

How to fix Server-side Request Forgery (SSRF)?

There is no fixed version for cors-anywhere.

*