NetBird relay server WebSocket listener trusts client-supplied X-Real-IP and X-Real-Port headers, allowing source address spoofing
Summary
| CVE | CVE-2026-135779 |
|---|---|
| State | PUBLISHED |
| Assigner | securin |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-24 08:17:06 UTC |
| Updated | 2026-11-24 08:17:06 UTC |
| Description | Reliance on an untrusted source of the client address in the WebSocket listener of the NetBird relay server (relay/server/listener/ws) in NetBird versions 0.31.1 through 0.74.7 allows an attacker with an enrolled peer to spoof the source address of their relay connection. The listener used the values of the X-Real-Ip and X-Real-Port request headers as the remote address of the connection unconditionally, without checking that the request came from a trusted upstream proxy. A WebSocket client that sends both headers makes the relay record and use an arbitrary address for its connection, including in the relay connection log, so a client can hide its real address or attribute its connection to another host. Only the relay server is affected; the NetBird client, including the Android and iOS apps, does not run the relay listener. The issue is fixed in version 0.75.0, which honours these headers only for requests whose direct connection address is in a configured set of trusted proxies and ignores them by default. |
Risk And Classification
Primary CVSS: v4.0 5.3 MEDIUM from 33c584b5-0579-4c06-b2a0-8d8329fcab9c
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Problem Types: CWE-290 | CWE-348 | CWE-348 CWE-348 Use of Less Trusted Source | CWE-290 CWE-290 Authentication Bypass by Spoofing
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | 33c584b5-0579-4c06-b2a0-8d8329fcab9c | Secondary | 5.3 | MEDIUM | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/C... |
| 4.0 | CNA | CVSS | 5.3 | MEDIUM | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
CVSS v4.0 Breakdown
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/netbirdio/netbird/security/advisories/GHSA-cqw7-rmgj-q96h | 33c584b5-0579-4c06-b2a0-8d8329fcab9c | github.com | |
| github.com/netbirdio/netbird/pull/6833 | 33c584b5-0579-4c06-b2a0-8d8329fcab9c | github.com | |
| github.com/netbirdio/netbird/releases/tag/v0.75.0 | 33c584b5-0579-4c06-b2a0-8d8329fcab9c | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Arjun Basnet from Securin (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-07-13T00:00:00.000Z | Reported to the vendor through a GitHub Security Advisory |
| CNA | 2026-07-15T00:00:00.000Z | Vendor accepted the report |
| CNA | 2026-07-23T00:00:00.000Z | Fix released in version 0.75.0 |
| CNA | 2026-11-18T00:00:00.000Z | Vendor advisory GHSA-cqw7-rmgj-q96h published |
| CNA | 2026-11-24T00:00:00.000Z | CVE ID assigned |
Solutions
CNA: Upgrade the NetBird relay server to version 0.75.0 or later. In this version the relay honours X-Real-Ip and X-Real-Port only for requests whose direct connection address is inside the set configured with the --trusted-proxies flag (a comma-separated list of CIDRs or IPs). When the set is empty, which is the default, the headers are ignored (pull request #6833). Operators who run the relay behind a reverse proxy and rely on the forwarded address must set --trusted-proxies to the proxy address after upgrading.