CVE-2017-20146
CRITICAL 9.8CVSS 3.1gorilla/handlers may allow requester to bypass expected behavior of the Same Origin Policy
Usage of the CORS handler may apply improper CORS headers, allowing the requester to explicitly control the value of the Access-Control-Allow-Origin header, which bypasses the expected behavior of the Same Origin Policy.
- Published
- 27 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Weakness
- CWE-346
- Also known as
- GHSA-jcr6-mmjj-pchwGO-2020-0020
- Sources
- NVDJSONOSV GHSA-jcr6-mmjj-pchwJSONOSV GO-2020-0020JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gorillatoolkit | handlerscpe:2.3:a:gorillatoolkit:handlers:*:*:*:*:*:go:*:* |
< 1.3.0 | 1.3.0 |
| OSV | Go | github.com/gorilla/handlers | < 1.3.0 | 1.3.0 |
References
- https://github.com/gorilla/handlers/commit/90663712d74cb411cbef281bc1e08c19d1a76145 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/gorilla/handlers/pull/116 · Patch, Third Party Advisory, WEB, FIX
- https://pkg.go.dev/vuln/GO-2020-0020 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-20146 · ADVISORY
- https://github.com/gorilla/handlers · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 27 Dec 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 Dec 2022)