Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS04NjljLWo3d2MtOGpxds4AA9as

Gin mishandles a wildcard at the end of an origin string

parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e.g., https://example.community/* is allowed when the intention is that only https://example.com/* should be allowed, and http://localhost.example.com/* is allowed when the intention is that only http://localhost/* should be allowed.

Permalink: https://github.com/advisories/GHSA-869c-j7wc-8jqv
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04NjljLWo3d2MtOGpxds4AA9as
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: 2 months ago
Updated: about 1 month ago


CVSS Score: 9.1
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Identifiers: GHSA-869c-j7wc-8jqv, CVE-2019-25211
References: Repository: https://github.com/gin-contrib/cors
Blast Radius: 43.1

Affected Packages

go:github.com/gin-contrib/cors
Dependent packages: 3,544
Dependent repositories: 5,989
Downloads:
Affected Version Ranges: < 1.6.0
Fixed in: 1.6.0
All affected versions: 1.3.0, 1.3.1, 1.4.0, 1.5.0
All unaffected versions:
go:github.com/gin-gonic/gin
Dependent packages: 30,041
Dependent repositories: 55,159
Downloads:
Affected Version Ranges: < 1.6.0
Fixed in: 1.6.0
All affected versions: 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.3.0, 1.4.0, 1.5.0
All unaffected versions: 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.10.0