USN-8983-1: golang-github-gin-contrib-cors vulnerability

Published Nov 3, 2026
·
Updated

It was discovered that the Gin CORS middleware incorrectly handled wildcards at the end of origin strings. A remote attacker could possibly use this issue to bypass the configured origin restrictions.

Affected Software

9 affected componentsFixes available
ubuntu/golang-github-gin-contrib-cors<1.3.0-2ubuntu0.1~esm1
1.3.0-2ubuntu0.1~esm1
ubuntu/golang-github-gin-contrib-cors<1.3.1-1+deb11u1build0.22.04.1
1.3.1-1+deb11u1build0.22.04.1
ubuntu/golang-github-gin-contrib-cors<1.4.0-1ubuntu0.1~esm1
1.4.0-1ubuntu0.1~esm1
All of the following
ubuntu/golang-github-gin-contrib-cors-dev<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=24.04
All of the following
ubuntu/golang-github-gin-contrib-cors-dev<1.3.1-1+deb11u1build0.22.04.1
1.3.1-1+deb11u1build0.22.04.1
Ubuntu Ubuntu=22.04
All of the following
ubuntu/golang-github-gin-contrib-cors-dev<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/golang-github-gin-contrib-cors to a version that resolves this vulnerability.

    Fixed in 1.3.0-2ubuntu0.1~esm1
  2. Upgrade

    Upgrade ubuntu/golang-github-gin-contrib-cors to a version that resolves this vulnerability.

    Fixed in 1.3.1-1+deb11u1build0.22.04.1
  3. Upgrade

    Upgrade ubuntu/golang-github-gin-contrib-cors to a version that resolves this vulnerability.

    Fixed in 1.4.0-1ubuntu0.1~esm1
  4. Upgrade

    Upgrade ubuntu/golang-github-gin-contrib-cors-dev to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  5. Upgrade

    Upgrade ubuntu/golang-github-gin-contrib-cors-dev to a version that resolves this vulnerability.

    Fixed in 1.3.1-1+deb11u1build0.22.04.1

Event History

Nov 3, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software
Advisory Published
via OSV·05:35 PM
Data Sourced
via OSV·05:35 PM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which environments are potentially exposed?

Ubuntu systems using golang-github-gin-contrib-cors or golang-github-gin-contrib-cors-dev may be exposed if their applications rely on configured CORS origin restrictions.

2

What level of attacker access is identified?

The issue may be exploitable by a remote attacker. The provided information does not state any authentication or local-access prerequisite.

3

Are fixed versions or temporary mitigations provided?

No fixed package versions or interim mitigation steps are included in the provided notice data.

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