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

State
Published
Severity
5.3 Medium
Published
Nov 24, 2026
Updated
Nov 25, 2026
Reserved
Nov 24, 2026

Read the record on cve.org

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.

ProductVersions
NetBird NetBird0.31.1 to before 0.75.0 Affected

Weaknesses

  • CWE-348 Use of Less Trusted Source
  • CWE-290 Authentication Bypass by Spoofing

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.