NetBird relay server WebSocket listener trusts client-supplied X-Real-IP and X-Real-Port headers, allowing source address spoofing

Summary

CVECVE-2026-135779
StatePUBLISHED
Assignersecurin
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-24 08:17:06 UTC
Updated2026-11-24 08:17:06 UTC
DescriptionReliance 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


VersionSourceTypeScoreSeverityVector
4.033c584b5-0579-4c06-b2a0-8d8329fcab9cSecondary5.3MEDIUMCVSS: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.0CNACVSS5.3MEDIUMCVSS: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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Confidentiality
Low
Integrity
Low
Availability
None
Sub Conf.
Low
Sub Integrity
Low
Sub Availability
None

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

SourceVendorProductVersionPlatforms
CNA NetBird NetBird affected 0.31.1 0.75.0 semver Linux

References

ReferenceSourceLinkTags
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

SourceTimeEvent
CNA2026-07-13T00:00:00.000ZReported to the vendor through a GitHub Security Advisory
CNA2026-07-15T00:00:00.000ZVendor accepted the report
CNA2026-07-23T00:00:00.000ZFix released in version 0.75.0
CNA2026-11-18T00:00:00.000ZVendor advisory GHSA-cqw7-rmgj-q96h published
CNA2026-11-24T00:00:00.000ZCVE 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.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report