CVE-2017-20146
Improper access control in github.com/gorilla/handlers
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2017-20146- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-346
- Updated
- 2026-11-02
CVE List
9.8
Improper access control in github.com/gorilla/handlers
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.
- Record
CVE-2017-20146- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
EUVDEUVD-2022-7663
9.8
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.
- Record
EUVD-2022-7663- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-jcr6-mmjj-pchw
9.8
gorilla/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.
- Record
GHSA-jcr6-mmjj-pchw- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-346
- Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2017-20146- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-20146
9.8
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.
- Record
DEBIAN-CVE-2017-20146- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-jcr6-mmjj-pchw
9.8
gorilla/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.
- Record
GHSA-jcr6-mmjj-pchw- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-346
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2017-20146
9.8
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.
- Record
UBUNTU-CVE-2017-20146- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGO-2020-0020 No score
Improper access control in github.com/gorilla/handlers
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.
- Record
GO-2020-0020- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/gorilla/handlersGo |
before 1.3.0 | 1.3.0 |
golang-github-gorilla-handlersDebian:12 |
before 1.3.0-1 | 1.3.0-1 |
golang-github-gorilla-handlersDebian:13 |
before 1.3.0-1 | 1.3.0-1 |
golang-github-gorilla-handlersDebian:14 |
before 1.3.0-1 | 1.3.0-1 |
golang-github-gorilla-handlersUbuntu:16.04:LTS |
All versions, plus listed versions 0.0~git20150820.0.40694b4-10.0~git20160115.0.8f27580-0ubuntu1 |
None known |
golang-github-gorilla-handlersUbuntu:18.04:LTS |
All versions, plus listed versions 1.1-3 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-20146 is a critical vulnerability (CVSS 9.8) in Github.com/gorilla/handlers, published April 14, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.77%, the 55th percentile. Fixed in github.com/gorilla/handlers 1.3.0.
References
github.com/gorilla/handlers/pull/116
github.com/gorilla/handlers/commit/90663712d74cb411cbef281bc1e08c19d1a76145
pkg.go.dev/vuln/GO-2020-0020
nvd.nist.gov/vuln/detail/CVE-2017-20146
github.com/advisories/GHSA-jcr6-mmjj-pchw
security-tracker.debian.org/tracker/CVE-2017-20146
github.com/gorilla/handlers
ubuntu.com/security/CVE-2017-20146
cve.org/CVERecord?id=CVE-2017-20146