SCA: security update for github.com/dhax/go-base (GHSA-mqq6-462x-jxmm)

critical Tenable Self-Hosted Container Security Plugin ID 443051

Description

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

- go-base is a Go RESTful API Boilerplate template with JWT Authentication, backed by PostgreSQL. In
versions prior to 2026-05-18, the JWT signing secret is hardcoded to the known string "random", letting
any attacker who reads the public repository forge tokens for arbitrary users, including admin roles, and
completely bypass authentication on all protected endpoints. This value is set in two places: the dev.env
template (line 10) and a programmatic fallback in cmd/serve.go (line 35), so the application uses it even
when no .env file is present. The original mitigation in auth/jwt/tokenauth.go (lines 22 to 25) only
caught the exact string "random", letting other weak secrets through, and replaced it with an in-memory
key that was not persisted, invalidating all tokens on every restart and effectively causing a denial-of-
service. This issue has been fixed in version 2026-05-18. (CVE-2026-48031)

Solution

Update the github.com/dhax/go-base library and its related packages to version 0.0.0-20260517152733-cc82b9740fa6 or later.

See Also

https://github.com/advisories/GHSA-mqq6-462x-jxmm

Plugin Details

Severity: Critical

ID: 443051

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 6/10/2026

Updated: 8/4/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.3

Percentile: 53.63

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-2026-48031

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 6/10/2026

Vulnerability Publication Date: 6/10/2026

Reference Information

CVE: CVE-2026-48031

cwe: CWE-798