CVE-2017-20146
gorilla: Usage of the CORS handler may apply improper CORS headers
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium), Ubuntu (medium).
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| go::GitHub Security Advisory Go | github.com/gorilla/handlers | 1.3.0 |
| debian 11 | golang-github-gorilla-handlers | 1.3.0-1 |
| debian 12 | golang-github-gorilla-handlers | 1.3.0-1 |
| debian 13 | golang-github-gorilla-handlers | 1.3.0-1 |
| debian 14 | golang-github-gorilla-handlers | 1.3.0-1 |
| echo | golang-github-gorilla-handlers | 1.3.0-1 |
| Red Hat | ansible-service-broker, ansible-service-broker-container-scripts, ansible-service-broker-selinux and 1 more | no fix listed |
| ubuntu 18.04-ESM | golang-github-gorilla-handlers | no fix listed |
Show all 11 entries from 8 sources
| Source | Package | Fixed in |
|---|---|---|
| go::GitHub Security Advisory Go | github.com/gorilla/handlers | 1.3.0 |
| debian 11 | golang-github-gorilla-handlers | 1.3.0-1 |
| debian 12 | golang-github-gorilla-handlers | 1.3.0-1 |
| debian 13 | golang-github-gorilla-handlers | 1.3.0-1 |
| debian 14 | golang-github-gorilla-handlers | 1.3.0-1 |
| echo | golang-github-gorilla-handlers | 1.3.0-1 |
| Red Hat | ansible-service-broker | no fix listed |
| Red Hat | ansible-service-broker-container-scripts | no fix listed |
| Red Hat | ansible-service-broker-selinux | no fix listed |
| Red Hat | automation-broker-apb-role | no fix listed |
| ubuntu 18.04-ESM | golang-github-gorilla-handlers | no fix listed |
References
- https://access.redhat.com/security/cve/CVE-2017-20146
- https://github.com/gorilla/handlers
- https://github.com/gorilla/handlers/commit/90663712d74cb411cbef281bc1e08c19d1a76145
- https://github.com/gorilla/handlers/pull/116
- https://nvd.nist.gov/vuln/detail/CVE-2017-20146
- https://pkg.go.dev/vuln/GO-2020-0020
- https://www.cve.org/CVERecord?id=CVE-2017-20146