CVE-2019-25211

Source
https://cve.org/CVERecord?id=CVE-2019-25211
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-25211.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2019-25211
Aliases
Downstream
Published
2024-06-29T00:15:02Z
Modified
2026-10-20T10:51:39Z
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
Summary
[none]
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.

References

Affected packages

Git / github.com/gin-contrib/cors

Affected ranges

Type
GIT
Repo
https://github.com/gin-contrib/cors
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "1.6.0"
                }
            ],
            "source":  "DESCRIPTION"
        },
        {
            "range":  [
                {
                    "fixed":  "27b723a473efd80d5a498fa9f5933c80204c850d"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v1.6.0",
            "range":  [
                {
                    "fixed":  "90a7c66401d66f6c7ac120dbe1ae7b63e7e4271f"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

v1.*
v1.0
v1.1
v1.2
v1.3.0
v1.3.1
v1.4.0
v1.5.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-25211.json"