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

Status: published. Published: 2026-11-24. Updated: 2026-11-24.

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.

## Remediation

- 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) — https://github.com/netbirdio/netbird/pull/6833

## Affected products and versions

- NetBird / NetBird (github.com/netbirdio/netbird): ≥ 0.31.1; < 0.75.0 (affected, semver). Source: CNA: securin; platforms: Linux

## Severity and prioritization

- CVSS 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:N; source: CNA: securin

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-348, CWE-290

## Exploit evidence

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

## References

- https://github.com/netbirdio/netbird/security/advisories/GHSA-cqw7-rmgj-q96h (CNA: securin; vendor-advisory)

- https://github.com/netbirdio/netbird/pull/6833 (CNA: securin; patch)

- https://github.com/netbirdio/netbird/releases/tag/v0.75.0 (CNA: securin; release-notes)

## Provenance

- CNA: securin: https://www.cve.org/CVERecord?id=CVE-2026-135779; retrieved 2026-11-24; source updated 2026-11-24

Revision: 57a7554d1e88d916095eace3ad9be51e8cc7d961a37661a542c033ece5730394

Canonical: https://y2.dev/cve/CVE-2026-135779

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.