GHSA-869c-j7wc-8jqv

Suggest an improvement
Source
https://github.com/advisories/GHSA-869c-j7wc-8jqv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-869c-j7wc-8jqv/GHSA-869c-j7wc-8jqv.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-869c-j7wc-8jqv
Aliases
Published
2024-06-29T06:31:40Z
Modified
2024-08-02T15:51:36Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Gin mishandles a wildcard at the end of an origin string
Details

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.

Database specific
{
    "nvd_published_at": "2024-06-29T00:15:02Z",
    "cwe_ids": [],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2024-07-01T21:30:24Z"
}
References

Affected packages

Go / github.com/gin-gonic/gin

Package

Name
github.com/gin-gonic/gin
View open source insights on deps.dev
Purl
pkg:golang/github.com/gin-gonic/gin

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.0

Go / github.com/gin-contrib/cors

Package

Name
github.com/gin-contrib/cors
View open source insights on deps.dev
Purl
pkg:golang/github.com/gin-contrib/cors

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.0