Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. cors-anywhere
  4. ›
  5. CVE-2020-36851

CVE-2020-36851: cors-anywhere vulnerable to server-side request forgery

September 25, 2025 (updated September 26, 2025)

Rob – W / cors-anywhere instances configured as an open proxy allow unauthenticated external users to induce the server to make HTTP requests to arbitrary targets (SSRF). Because the proxy forwards requests and headers, an attacker can reach internal-only endpoints and link-local metadata services, retrieve instance role credentials or other sensitive metadata, and interact with internal APIs and services that are not intended to be internet-facing. The vulnerability is exploitable by sending crafted requests to the proxy with the target resource encoded in the URL; many cors-anywhere deployments forward arbitrary methods and headers (including PUT), which can permit exploitation of IMDSv2 workflows as well as access to internal management APIs. Successful exploitation can result in theft of cloud credentials, unauthorized access to internal services, remote code execution or privilege escalation (depending on reachable backends), data exfiltration, and full compromise of cloud resources. Mitigation includes: restricting the proxy to trusted origins or authentication, allowlisting allowed target hosts, preventing access to link-local and internal IP ranges, removing support for unsafe HTTP methods/headers, enabling cloud provider mitigations, and deploying network-level protections.

References

  • github.com/Rob--W/cors-anywhere
  • github.com/Rob--W/cors-anywhere/issues/152
  • github.com/Rob--W/cors-anywhere/issues/521
  • github.com/Rob--W/cors-anywhere/issues/78
  • github.com/SocketDev/security-research/security/advisories/GHSA-9wmg-93pw-fc3g
  • github.com/advisories/GHSA-r3jv-xfgx-gj24
  • nvd.nist.gov/vuln/detail/CVE-2020-36851
  • www.certik.com/resources/blog/cors-anywhere-dangers-of-misconfigured-third-party-software
  • www.vulncheck.com/advisories/rob-w-cors-anywhere-misconfigured-cors-proxy-allows-ssrf

Code Behaviors & Features

Detect and mitigate CVE-2020-36851 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.4.4

Solution

Unfortunately, there is no solution available yet.

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/cors-anywhere/CVE-2020-36851.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 03 Oct 2025 00:19:24 +0000.