REDHAT-BUG-2295302: Medium severity gin-gonic cors middleware vulnerability

Published Jul 2, 2024
·
Updated

Gin-Gonic CORS middleware mishandles a wildcard at the end of an origin string. Examples: https://example.community/ is accepted by the origin string https://example.com/ and http://localhost.example.com/ is accepted by the origin string http://localhost/ .

Affected Software

1 affected component
gin-gonic CORS middleware

Event History

Jul 2, 2024
Data Sourced
via Red Hat·09:00 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2295302?

The severity of REDHAT-BUG-2295302 is classified as moderate due to the potential for CORS misconfiguration.

2

How do I fix REDHAT-BUG-2295302?

To fix REDHAT-BUG-2295302, ensure that the CORS middleware properly validates origin strings without accepting wildcards improperly.

3

Which versions of Gin-Gonic CORS middleware are affected by REDHAT-BUG-2295302?

All versions of the Gin-Gonic CORS middleware that mishandle wildcard origin strings are affected by REDHAT-BUG-2295302.

4

What risk does REDHAT-BUG-2295302 pose to applications?

REDHAT-BUG-2295302 poses a risk of exposing applications to Cross-Origin Resource Sharing vulnerabilities that can lead to security breaches.

5

Where can I find more information on REDHAT-BUG-2295302?

More information on REDHAT-BUG-2295302 can be obtained by reviewing the associated Red Hat bug report.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203