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:GSA_kwCzR0hTQS1taDU1LWdxdmYteGZ3bc4AA9m0
Denial of service via malicious preflight requests in github.com/rs/cors
Affected Packages | Affected Versions | Fixed Versions | |
---|---|---|---|
go:github.com/rs/cors | >= 1.9.0, < 1.11.0 | 1.11.0 | |
Affected Version RangesAll affected versions1.9.0, 1.10.0, 1.10.1 All unaffected versions1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.11.0, 1.11.1 |