CVE-2025-47908: Denial of service via malicious preflight requests in github.com/rs/cors
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.
Published Jul 5, 2024 · Updated Aug 6, 2025
Affected packages
github.com/rs/cors
- Ecosystem
- Go
- Affected
- >= 1.9.0, < 1.11.0
- Fixed in
- 1.11.0
- Check
go list -m github.com/rs/cors
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
