CVE-2019-25211

golang-github-gin-contrib-cors-dev: parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e....

CVE-2019-25211 is fixed in 2 products on 1 platform, first by golang-github-gin-contrib-cors-dev 1.3.0-2ubuntu0.1~esm1, released June 28, 2024. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
9.1
Medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0043
37th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
golang-github-gin-contrib-cors · Debian 11.6 (bullseye) 1.3.1-1+deb11u1 DLA-4285-1 Aug 28, 2025
golang-github-gin-contrib-cors · Debian 12.15 (bookworm) 1.4.0-1+deb12u1 DEBIAN-CVE-2019-25211 Jun 29, 2024
golang-github-gin-contrib-cors · Debian 13.5 (trixie) 1.4.0-1+deb13u1 DEBIAN-CVE-2019-25211 Jun 29, 2024
golang-github-gin-contrib-cors-dev · Ubuntu 20.04 LTS (focal) 1.3.0-2ubuntu0.1~esm1 golang-github-gin-contrib-cors-dev 1.3.0-2ubuntu0.1~esm1 Jun 28, 2024
golang-github-gin-contrib-cors-dev · Ubuntu 22.04.1 LTS (jammy) 1.3.1-1+deb11u1build0.22.04.1 golang-github-gin-contrib-cors-dev 1.3.1-1+deb11u1build0.22.04.1 Jun 28, 2024
golang-github-gin-contrib-cors-dev · Ubuntu 24.04.5 LTS (noble) 1.4.0-1ubuntu0.1~esm1 golang-github-gin-contrib-cors-dev 1.4.0-1ubuntu0.1~esm1 Jun 28, 2024

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.