A perfect 10 at NVD sounds scary, but this one only bites a small group: people running Node.js 25 with --permission switched on.
At a glance
- CVE: CVE-2026-21636
- Severity: 10.0 (Critical) at NVD. Node.js rates it Medium, and HackerOne, which issued the CVE, scores it 5.8. That’s a big gap, and the narrow conditions below explain why.
- Affected: Node.js 25.x before 25.3.0, and only when running with the permission model (
--permission). Node 20, 22 and 24 weren’t affected. - Known exploited: Not on CISA’s KEV list.
What’s going on
With --permission on, Node blocks network access unless you also pass --allow-net, which was still experimental at the time. The trouble was that connections over Unix domain sockets weren’t checked. Those are the local socket files that services on the same machine listen on. Even without --allow-net, input an attacker controls, like a URL or a socketPath option, could open a connection to any local socket through net, tls or undici/fetch.
Node says that breaks the permission model’s security boundary and can open the door to privileged local services, which could lead to privilege escalation, data exposure or local code execution. The fix adds a network permission check when Node connects to a Unix socket.
Who should care? Only people who ran Node 25 with --permission, relied on it to block network access, and let outside input decide where the app connects. If you’re on an LTS line or don’t use the permission model, you weren’t affected. As with any permission-model bug, remember Node’s own docs: it’s a “seat belt” for trusted code, not a sandbox for code you don’t trust.
Timeline
- Patch released: 2026-01-13 (Node.js 25.3.0, part of the security releases Node had first planned for around 2025-12-15)
- Published on NVD: 2026-01-20
- Node.js 25 end-of-life: 2026-06-01
== UPDATE ==
It’s fixed, but Node 25 itself is now end-of-life, so the real fix is moving off it.
- Patch available: Yep.
- Fixed in: Node.js 25.3.0.
- How to apply: If you’re still on Node 25, move to a supported LTS line. Node 26 is the current Active LTS, and 22 and 24 are in maintenance. Install it via nvm, your OS packages or your Docker base image, then redeploy. Node 25 stopped getting security fixes on 2026-06-01. As a related note, Node’s June 2026 releases fixed a separate, low-severity issue where a Unix domain socket server could bypass the same network restrictions (CVE-2026-48936, Node 26 only, fixed in 26.3.1).
- If you can’t patch yet: Node’s advisory doesn’t list a workaround. Until you upgrade, don’t let untrusted input choose
socketPathvalues or connection URLs, and don’t count on the permission model to keep untrusted code away from local services.
References
- https://nodejs.org/en/blog/vulnerability/december-2025-security-releases
- https://nodejs.org/en/blog/release/v25.3.0
- https://nodejs.org/api/permissions.html
- https://nodejs.org/en/blog/vulnerability/june-2026-security-releases
- https://github.com/nodejs/release#release-schedule
- https://nvd.nist.gov/vuln/detail/CVE-2026-21636