CVE-2018-20744 json
github.com/gofiber/fiber/v2 vulnerable to Origin Validation Error
published 2019-01-28 7 y ago modified 2026-06-17 4 mo ago also GHSA-927h-x4qj-r242 , GO-2023-1792 , EUVD-2022-3267
- cvss
- 5.9
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/gofiber/fiber/v2 2.43.0
- go github.com/rs/cors 1.5.0
- github.com/gofiber/fiber#2339 pull request
- github.com/rs/cors#57 pull request
Exploit prediction
0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/gofiber/fiber/v2 | >=2.0.0, <2.43.0 |
2.43.0 |
| go | github.com/rs/cors | <1.5.0 |
1.5.0 |
Classification
- Weakness
-
- CWE-346 Origin Validation Error
References
-
github.com
/gofiber/fiber/pull/2339
web
-
github.com
/rs/cors/pull/57
web, patch
-
securityfocus.com
/bid/106834
vdb-entry, third-party-advisory
-
github.com
/rs/cors/issues/55
web, issue-tracking, third-party-advisory, report
-
usenix.org
/system/files/conference/usenixsecurity18/sec18-chen.pdf
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-20744
advisory
-
github.com
/gofiber/fiber/issues/2338
web
-
github.com
/gofiber/fiber
package
-
web.archive.org
/web/20200227091122/http://www.securityfocus.com/bid/106834
web
Sources
- CVE List CVE-2018-20744
- GitHub Advisory GHSA-927h-x4qj-r242
- NVD CVE-2018-20744
- OSV GO-2023-1792
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.