USN-8983-1: Gin CORS middleware vulnerability

Publication date

3 November 2026

Overview

The Gin CORS middleware could allow unintended access to network services.


Packages

Details

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.

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.

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
24.04 LTS noble golang-github-gin-contrib-cors-dev –  1.4.0-1ubuntu0.1~esm1  
22.04 LTS jammy golang-github-gin-contrib-cors-dev –  1.3.1-1+deb11u1build0.22.04.1
20.04 LTS focal golang-github-gin-contrib-cors-dev –  1.3.0-2ubuntu0.1~esm1  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›