Go Vulnerability Database
GO-2023-1792
Insecure wildcard CORS policy in github.com/rs/cors
Details
The CORS handler actively converts a wildcard CORS policy into reflecting an arbitrary Origin header value, which is incompatible with the CORS security design, and could lead to CORS misconfiguration security problems.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/rs/cors | All versions before 1.5.0 (fixed in 1.5.0) |