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

Published Nov 24, 2026
·
Updated

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.

Affected Software

1 affected component
NetBird NetBird relay server>=0.31.1<=0.74.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.75.0
  2. Configuration

    If the relay runs behind a reverse proxy and relies on the forwarded address, set --trusted-proxies to the proxy address after upgrading.

    NetBird relay server --trusted-proxies = proxy address (CIDR or IP)

Event History

Nov 24, 2026
CVE Published
via MITRE·08:07 AM
Data Sourced
via MITRE·08:07 AM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Which deployments are affected?

Only NetBird relay servers are affected, specifically versions 0.31.1 through 0.74.7. NetBird clients, including the Android and iOS apps, do not run the affected relay listener.

2

What does an attacker need to exploit this issue?

The attacker needs an enrolled peer and the ability to make a WebSocket connection to the relay server. They can send both X-Real-IP and X-Real-Port headers to cause the relay to use an arbitrary source address.

3

Are relay servers affected by default when they are not behind a proxy?

Affected versions trust the client-supplied headers unconditionally, without verifying that the request came through a trusted upstream proxy. As a result, a WebSocket client can spoof its recorded relay connection address directly.

4

How can I determine whether logs or relay records may have been spoofed?

Review relay connection logs or records from affected relay server versions for source addresses that may have been supplied by connecting peers. The affected listener used the X-Real-IP and X-Real-Port header values as the connection remote address whenever both were sent.

5

What remediation is available?

Upgrade the relay server to version 0.75.0. That version ignores these headers by default and honors them only when the direct connection address belongs to a configured trusted-proxy set.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203