SCA: security update for github.com/gin-contrib/cors, github.com/gin-gonic/gin (GHSA-869c-j7wc-8jqv)

critical Tenable Self-Hosted Container Security Plugin ID 412470

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2019-25211)

See Also

https://github.com/advisories/GHSA-869c-j7wc-8jqv

Plugin Details

Severity: Critical

ID: 412470

Version: Revision 1.16

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/6/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.3

Percentile: 53.52

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 9.4

Temporal Score: 7

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:N

CVSS Score Source: CVE-2019-25211

CVSS v3

Risk Factor: Critical

Base Score: 9.1

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 8

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 6/29/2024

Vulnerability Publication Date: 6/28/2024

Reference Information

CVE: CVE-2019-25211

cwe: CWE-346