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.
https://pkg.go.dev/vuln/GO-2024-2883
https://github.com/rs/cors/pull/171
Published: 2025-08-06
Updated: 2026-04-15
Named Vulnerability: GO-2024-2883Named Vulnerability: GHSA-mh55-gqvf-xfwm
Base Score: 7.8
Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C
Severity: High
Base Score: 7.5
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Severity: High
EPSS: 0.00595