Public vulnerability disclosure

CVE-2026-135779

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

publishedCWE-348CWE-290

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.

Technical severity5.3 mediumCVSS 4.0 · CNA: securin
Published2026-11-24Source updated 2026-11-24
Collected2026-11-241 attributed source

Fixes and workarounds

Fix

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.

Source: CNA: securin

Fix

The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.

Source: CNA: securin

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
NetBird
NetBird
github.com/netbirdio/netbird
https://pkg.go.dev
Platforms: Linux
≥ 0.31.1; < 0.75.0 (affected, semver)
Other versions: unaffected
CNA: securin

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
4.0 / 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:NCNA: securin

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide