PT-2024-10742
CVE-2019-25211
·
تاريخ النشر
2024-06-28
·
تاريخ التحديث
2026-11-03
الوصف من
CVSS 4.0
9.3
حرجةالمقاييسAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
Gin-Gonic CORS middleware versions prior to 1.6.0
Description
The issue arises from the mishandling of a wildcard at the end of an origin string by the
parseWildcardRules function in Gin-Gonic CORS middleware. This results in unintended origins being allowed. For example, https://example.community/* is allowed when the intention is to only allow https://example.com/*, and http://localhost.example.com/* is allowed when the intention is to only allow http://localhost/*.Recommendations
For versions prior to 1.6.0, update to version 1.6.0 or later to resolve the issue. As a temporary workaround, consider manually validating origin strings to ensure they match the intended patterns, avoiding the use of wildcards at the end of origin strings until a patch is applied.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾