Vulnerabilities / CVE-2017-20146

critical

CVE-2017-20146

gorilla: Usage of the CORS handler may apply improper CORS headers

Published Modified CWE 346
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L

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

SourcePackageFixed in
go::GitHub Security Advisory Gogithub.com/gorilla/handlers1.3.0
debian 11golang-github-gorilla-handlers1.3.0-1
debian 12golang-github-gorilla-handlers1.3.0-1
debian 13golang-github-gorilla-handlers1.3.0-1
debian 14golang-github-gorilla-handlers1.3.0-1
echogolang-github-gorilla-handlers1.3.0-1
Red Hatansible-service-broker, ansible-service-broker-container-scripts, ansible-service-broker-selinux and 1 moreno fix listed
ubuntu 18.04-ESMgolang-github-gorilla-handlersno fix listed
Show all 11 entries from 8 sources
SourcePackageFixed in
go::GitHub Security Advisory Gogithub.com/gorilla/handlers1.3.0
debian 11golang-github-gorilla-handlers1.3.0-1
debian 12golang-github-gorilla-handlers1.3.0-1
debian 13golang-github-gorilla-handlers1.3.0-1
debian 14golang-github-gorilla-handlers1.3.0-1
echogolang-github-gorilla-handlers1.3.0-1
Red Hatansible-service-brokerno fix listed
Red Hatansible-service-broker-container-scriptsno fix listed
Red Hatansible-service-broker-selinuxno fix listed
Red Hatautomation-broker-apb-roleno fix listed
ubuntu 18.04-ESMgolang-github-gorilla-handlersno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.