# 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.

- Web page: https://patchblox.com/security/cve/CVE-2019-25211
- Priority: High
- CVSS: 9.1 (Medium)
- EPSS: 0.0043
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 28, 2024

## Description

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

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | golang-github-gin-contrib-cors Debian 11.6 (bullseye) | 1.3.1-1+deb11u1 | [DLA-4285-1](https://patchblox.com/security/data/fix/linux/dla-4285-1.md) | Aug 28, 2025 |
| Linux | golang-github-gin-contrib-cors Debian 12.15 (bookworm) | 1.4.0-1+deb12u1 | [DEBIAN-CVE-2019-25211](https://patchblox.com/security/data/fix/linux/debian-cve-2019-25211.md) | Jun 29, 2024 |
| Linux | golang-github-gin-contrib-cors Debian 13.5 (trixie) | 1.4.0-1+deb13u1 | [DEBIAN-CVE-2019-25211](https://patchblox.com/security/data/fix/linux/debian-cve-2019-25211.md) | Jun 29, 2024 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-github-gin-contrib-cors-dev-1.3.0-2ubuntu0.1-esm1.md) | Jun 28, 2024 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-golang-github-gin-contrib-cors-dev-1.3.1-1-deb11u1build0.22.04.1.md) | Jun 28, 2024 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-noble-golang-github-gin-contrib-cors-dev-1.4.0-1ubuntu0.1-esm1.md) | Jun 28, 2024 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
