high7.5
CVE-2025-47908
Denial of service via malicious preflight requests in github.com/rs/cors
Impact
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 | Fixed in |
|---|---|---|---|
| go | github.com/rs/cors | >= 1.9.0, < 1.11.0 | 1.11.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/rs/cors/issues/170
- https://github.com/rs/cors/pull/171
- https://pkg.go.dev/vuln/GO-2024-2883
- https://github.com/advisories/GHSA-mh55-gqvf-xfwm
- https://github.com/rs/cors/commit/4c32059b2756926619f6bf70281b91be7b5dddb2
- https://nvd.nist.gov/vuln/detail/CVE-2025-47908