CVE-2026-135779 in NetBirdinfo

Summary

by MITRE • 11/24/2026

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.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/24/2026

The vulnerability identified within NetBird versions 0.31.1 through 0.74.7 represents a critical failure in input validation regarding the WebSocket listener component located at relay/server/listener/ws. This flaw stems from an excessive reliance on untrusted sources for determining the client address, specifically by blindly accepting values provided in the X-Real-Ip and X-Real-Port HTTP headers without verifying their authenticity or origin. In standard network architectures, these headers are typically utilized to preserve the original IP address of a client when traffic passes through reverse proxies or load balancers. However, this implementation fails to enforce any trust boundary check to ensure that such requests originate from authorized upstream infrastructure rather than directly from an external peer. Consequently, any authenticated user enrolled in the NetBird network can manipulate these headers to spoof their source address during relay connections.

From a technical perspective, the WebSocket listener unconditionally assigns the values found in X-Real-Ip and X-Real-Port as the remote address for the connection. This behavior allows an attacker with valid enrollment credentials to inject arbitrary IP addresses into the system metadata. The impact extends beyond simple identity obfuscation; it affects the integrity of relay connection logs, which record these spoofed addresses instead of the actual network endpoints. This capability enables malicious actors to hide their true geographic and network location while simultaneously attributing their activities to other hosts within or outside the organization. Such manipulation can facilitate unauthorized access patterns that evade standard security monitoring tools reliant on IP-based reputation systems or anomaly detection algorithms, as the logged data will reflect false premises regarding who is accessing specific resources.

The operational impact of this vulnerability is significant for organizations relying on NetBird for secure remote connectivity and audit trails. By spoofing source addresses, an attacker can potentially bypass access control lists that are configured to trust certain IP ranges or domains. Furthermore, the integrity of forensic investigations is compromised because log files contain inaccurate information about connection origins. This undermines compliance with security standards that require accurate logging of authentication events and network connections. The vulnerability aligns closely with CWE-20 Improper Input Validation, as the system fails to validate whether incoming headers are legitimate before processing them. Additionally, it relates to ATT&CK technique T1078 Valid Accounts, where an adversary uses valid credentials but manipulates connection attributes to evade detection and maintain persistence without triggering alerts associated with unusual source IPs.

It is important to note that this vulnerability affects only the relay server component of NetBird and does not impact the client applications themselves, including those running on Android and iOS devices. The clients do not execute the vulnerable listener code; rather, they act as endpoints connecting through the compromised relay infrastructure. Mitigation strategies involve upgrading immediately to version 0.75.0 or later, where the developers have implemented a fix that restricts the acceptance of X-Real-Ip and X-Real-Port headers exclusively to requests originating from a configured set of trusted proxies. For environments unable to upgrade instantly, administrators should consider deploying an external reverse proxy in front of the NetBird relay server that strips or validates these headers before they reach the application layer. This ensures that only traffic passing through authorized infrastructure can influence the perceived source address, thereby restoring trust boundaries and preventing unauthorized spoofing attempts.

Responsible

Securin

Reservation

11/24/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!