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.
{
"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"
}
]
}