SCA: security update for github.com/gorilla/csrf (GHSA-rq77-p4h8-4crw)

medium Tenable Self-Hosted Container Security Plugin ID 434617

Description

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

- gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications &
services. Prior to 1.7.2, gorilla/csrf does not validate the Origin header against an allowlist. Its
executes its validation of the Referer header for cross-origin requests only when it believes the request
is being served over TLS. It determines this by inspecting the r.URL.Scheme value. However, this value is
never populated for "server" requests per the Go spec, and so this check does not run in practice. This
vulnerability allows an attacker who has gained XSS on a subdomain or top level domain to perform
authenticated form submissions against gorilla/csrf protected targets that share the same top level
domain. This vulnerability is fixed in 1.7.2. (CVE-2025-24358)

See Also

https://github.com/advisories/GHSA-rq77-p4h8-4crw

Plugin Details

Severity: Medium

ID: 434617

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 8/19/2025

Updated: 7/6/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.86

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

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

CVSS Score Source: CVE-2025-24358

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

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

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

CVSS v4

Risk Factor: Medium

Base Score: 6

Threat Score: 5.3

Threat Vector: CVSS:4.0/E:P

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 4/14/2025

Vulnerability Publication Date: 4/14/2025

Reference Information

CVE: CVE-2025-24358

cwe: CWE-352