Open mend-bolt-for-github[bot] opened 2 months ago
Use of vulnerable components will introduce weaknesses into the application. Components with published vulnerabilities will allow easy exploitation as resources will often be available to automate the process.
CVE-2019-25211 - Critical Severity Vulnerability
Vulnerable Library - github.com/gin-contrib/cors-v1.3.0
Official CORS gin's middleware
Library home page: https://proxy.golang.org/github.com/gin-contrib/cors/@v/v1.3.0.zip
Path to dependency file: /go.mod
Path to vulnerable library: /go/pkg/mod/cache/download/github.com/gin-contrib/cors/@v/v1.3.0.mod
Dependency Hierarchy: - :x: **github.com/gin-contrib/cors-v1.3.0** (Vulnerable Library)
Found in base branch: master
Vulnerability 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.
Publish Date: 2024-06-28
URL: CVE-2019-25211
CVSS 3 Score Details (9.1)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: None
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Release Date: 2024-06-28
Fix Resolution: github.com/gin-contrib/cors-v1.6.0
Step up your Open Source Security Game with Mend here