SCA: security update for github.com/nezhahq/nezha (GHSA-jg62-j5h6-8mpq)

medium Tenable Self-Hosted Container Security Plugin ID 444041

Description

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

- Nezha Monitoring is a self-hostable, lightweight, servers and websites monitoring and O&M tool. From
version 1.0.0 to before version 2.2.0, the Nezha dashboard exposes two endpoints that create long-lived
WebSocket streams to monitored agents: POST /api/v1/terminal → createTerminal() (terminal.go:27-67) and
POST /api/v1/file → createFM() (fm.go:28-67). Both call rpc.NezhaHandlerSingleton.CreateStream(streamId,
...) which inserts a new ioStreamContext into an unbounded map[string]*ioStreamContext (s.ioStreams in
io_stream.go:59-67). There is no per-user rate limit, no global semaphore, and no per-server connection
cap. This issue has been patched in version 2.2.0. (CVE-2026-53522)

Solution

Update the github.com/nezhahq/nezha library and its related packages to version 2.2.0 or later.

See Also

https://github.com/advisories/GHSA-jg62-j5h6-8mpq

Plugin Details

Severity: Medium

ID: 444041

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 6/27/2026

Updated: 6/27/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.76

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

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

CVSS Score Source: CVE-2026-53522

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

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

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 6/26/2026

Vulnerability Publication Date: 6/12/2026

Reference Information

CVE: CVE-2026-53522

cwe: CWE-770