SCA: security update for github.com/patrickhener/goshs/v2 (GHSA-rhf7-wvw3-vjvm)

medium Tenable Self-Hosted Container Security Plugin ID 440779

Description

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

- goshs is a SimpleHTTPServer written in Go. Prior to version 2.0.2, the PUT upload handler
(httpserver/updown.go) lacks the CSRF token validation that was added to the POST upload handler during
the CVE-2026-40883 fix. Combined with the unconditional Access-Control-Allow-Origin: * on the OPTIONS
preflight handler (httpserver/server.go), any website can write arbitrary files to a goshs instance
through the victim's browser — bypassing network isolation (e.g. localhost, internal network). This issue
has been patched in version 2.0.2. (CVE-2026-42091)

Solution

Update the github.com/patrickhener/goshs/v2 library and its related packages to version 2.0.2 or later.

See Also

https://github.com/advisories/GHSA-rhf7-wvw3-vjvm

Plugin Details

Severity: Medium

ID: 440779

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 4/23/2026

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 5.7

Percentile: 96.51

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

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

CVSS Score Source: CVE-2026-42091

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.9

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

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/23/2026

Vulnerability Publication Date: 4/23/2026

Reference Information

CVE: CVE-2026-42091

cwe: CWE-352