Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/rs/cors
  4. ›
  5. CVE-2025-47908

CVE-2025-47908: Denial of service via malicious preflight requests in github.com/rs/cors

July 5, 2024 (updated August 6, 2025)

Middleware causes a prohibitive amount of heap allocations when processing malicious preflight requests that include a Access-Control-Request-Headers (ACRH) header whose value contains many commas. This behavior can be abused by attackers to produce undue load on the middleware/server as an attempt to cause a denial of service.

References

  • github.com/advisories/GHSA-mh55-gqvf-xfwm
  • github.com/rs/cors
  • github.com/rs/cors/commit/4c32059b2756926619f6bf70281b91be7b5dddb2
  • github.com/rs/cors/issues/170
  • github.com/rs/cors/pull/171
  • nvd.nist.gov/vuln/detail/CVE-2025-47908
  • pkg.go.dev/vuln/GO-2024-2883

Code Behaviors & Features

Detect and mitigate CVE-2025-47908 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 starting from 1.9.0 before 1.11.0

Fixed versions

  • 1.11.0

Solution

Upgrade to version 1.11.0 or above.

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/github.com/rs/cors/CVE-2025-47908.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 19 Aug 2025 12:18:18 +0000.