Go Vulnerability Database
GO-2024-2883
Denial of service via malicious preflight requests in github.com/rs/cors
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/rs/cors | From 1.9.0 before 1.11.0 (fixed in 1.11.0) |