Skip to content
OpenAdvisories
Critical · 9.8 CVE-2017-20146 EUVD-2022-7663GHSA-jcr6-mmjj-pchwGO-2020-0020

Improper access control in github.com/gorilla/handlers

Published Dec 27, 2022 · Updated Apr 11, 2025 · Assigned by Go

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 products

VendorProductAffectedFixed
github.com/gorilla/handlers github.com/gorilla/handlers < 1.3.0 1.3.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-github-gorilla-handlers 1.3.0-1 —
Debian 13 golang-github-gorilla-handlers 1.3.0-1 —
Debian 12 golang-github-gorilla-handlers 1.3.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS golang-github-gorilla-handlers No fix yet —
Ubuntu 16.04 LTS golang-github-gorilla-handlers No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gorilla/handlers < 1.3.0 1.3.0 GHSA-jcr6-mmjj-pchw

References