CVE-2018-20744Go Cors Project Go Cors
Medium 5.9 No auth needed
Follow: this CVE · Go Cors Project · Go Cors Project Go Cors We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.0
- 5.9
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 50
- Auth required
- No
- Published
- Jan 28, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-346
- Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
The Olivier Poitrey Go CORS handler through 1.3.0 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.
What to do
- Apply the vendor's security update for Go Cors.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gofiber/fiber/v2 |
≥ 2.0.0 < 2.43.0 |
2.43.0 |
go get github.com/gofiber/fiber/v2@v2.43.0 |
| Go | github.com/rs/cors |
< 1.5.0 |
1.5.0 |
go get github.com/rs/cors@v1.5.0 |
| Go | github.com/rs/cors |
< 1.5.0 |
1.5.0 |
go get github.com/rs/cors@v1.5.0 |
Per OSV / GitHub Advisories (GHSA-927h-x4qj-r242, GO-2023-1792). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| go_cors_project | go_cors | ≤ 1.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com Third Party Advisory
- github.com Issue Tracking Third Party Advisory
- www.usenix.org Third Party Advisory