Nezha Monitoring: Unbounded WebSocket Streams β Resource Exhaustion DoS (nezhahq nezha)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.35 % Β· percentile 28 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Deferred
Description
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.
Weaknesses (CWE)
- CWE-770 β Allocation of Resources Without Limits or Throttling
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD Β· security-advisories@github.com (Secondary) |
Advisories
- GHSA-jg62-j5h6-8mpq β Nezha Monitoring: Unbounded WebSocket Streams β Resource Exhaustion DoS
- GO-2026-5831 β Nezha Monitoring: Unbounded WebSocket Streams β Resource Exhaustion DoS in github.com/nezhahq/nezha
European references
- ENISA EUVD Β· EUVD-2026-36601
- GCVE Β· GCVE-0-2026-53522
Affected products
| Product | Versions |
|---|---|
| nezhahq Β· nezha | affected >= 1.0.0, < 2.2.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |