Skip to content
Access control Disclosed report Intermediate CVE-2026-21636

Node.js permission model bypass via unchecked Unix Domain Socket connections (UDS)

The Node.js permission model did not enforce network restrictions for Unix Domain Socket connections, so code running under the permission model could connect to arbitrary local sockets even without the network permission flag. An attacker who can supply a URL or socket path could reach privileged local services, potentially leading to privilege escalation, data exposure, or local code execution.

winfunc Follow

Originally disclosed on HackerOne

Medium 5.8 View original
  • Triaged in 14 hours
  • Fixed in 29 days
  • Disclosed after 59 days

Summary by the program

A flaw in Node.js's permission model allows Unix Domain Socket (UDS) connections to bypass network restrictions when --permission is enabled. Even without --allow-net, attacker-controlled inputs (such as URLs or socketPath options) can connect to arbitrary local sockets via net, tls, or undici/fetch. This breaks the intended security boundary of the permission model and enables access to privileged local services, potentially leading to privilege escalation, data exposure, or local code execution.

  • The issue affects users of the Node.js permission model on version v25.

In the moment of this vulnerability, network permissions (--allow-net) are still in the experimental phase.

The original report as published on HackerOne, by winfunc. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the permission model's network checks were only applied to regular network connections and not to Unix Domain Socket connections made through net, tls, or undici/fetch.

Impact

This breaks the intended security boundary and could allow access to privileged local services, potentially leading to privilege escalation, data exposure, or local code execution.

What the attacker needed

Node.js permission model enabled; attacker-controlled URL or socketPath

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Node.js has a security feature called the permission model that is meant to stop code from doing things like making network connections unless explicitly allowed. This report says that rule was not applied to a special kind of local connection called a Unix Domain Socket, which lets programs on the same machine talk to each other. So code that was supposed to be locked down could still talk to other local services.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.