MEDIUM
GHSA-mh55-gqvf-xfwm
Denial of service via malicious preflight requests in github.com/rs/cors
Quick fix
GHSA-mh55-gqvf-xfwm — github.com/rs/cors: upgrade to the fixed version with the command below.
go get github.com/rs/cors@v1.11.0Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/rs/cors"]}'