LowGO-2023-1792CVE-2018-20744GHSA-927h-x4qj-r242
Insecure wildcard CORS policy in github.com/rs/cors
Published 8 Jun 2023 · Updated 20 May 2024
Is your project on an affected github.com/rs/cors?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.5.0
- Fixed in
- 1.5.0
Update to the fixed version for your release line, for example:
go get github.com/rs/cors@v1.5.0Details
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.
Is GO-2023-1792 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/rs/cors, and gives you the command that fixes it.
More advisories for github.com/rs/cors
- MediumCVE-2025-47908Denial of service via malicious preflight requests in github.com/rs/cors · 5 Jul 2024
- LowCVE-2025-47908Denial of service via malicious preflight requests in github.com/rs/cors · 2 Jul 2024
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.