cors-anywhere@0.2.3 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.

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

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.

*