Subscribe free
Morning Merge Security · Wednesday, December 2, 20264 min read

node-tar's symlink escapes; WebSocket servers' memory bugs

Also: node-forge signature forgery, NATS leafnode crash, AWS agent identity

If your services unpack archives or hold WebSocket connections for strangers, today's advisories are about you. node-tar and ws have fixes, but node-tar's is a major version, so find it in your tree first.

The main thing

A blueprint-style drawing of an open shipping crate of boxes under a magnifying lens, where a green chain runs from one box out through a gap in the crate wall.

node-tar's symlink check trusts the string, not the filesystem (CVE-2026-140249, rated high). It's one of 17 high-rated advisories against the npm tar package, numbered between CVE-2026-140234 and CVE-2026-140252.

The README promises that Link and SymbolicLink entries can't point outside the extraction folder. Seven advisories break that promise with default tar.x() options.

The weird part is how. node-tar rejects a link to ../secret.txt. But its check is lexical: it collapses .. as text without following symlinks.

An archive that first creates s1 -> . and then s2 -> s1/../secret.txt passes, because on paper s2 stays inside. The kernel resolves s1 first, so s2 lands one level above the root. Repeat s1/ and you climb to /.

GHSA-3wwj-8j6r-q339 calls it a regression since 7.5.5, and GHSA-4pf9-5fpx-xmr6 reproduces it on 7.5.23. An escaping link isn't a file overwrite by itself: the damage comes when something later follows it. One report reads /etc/passwd on a non-Windows host.

node-tar also splits PAX extended headers on newlines instead of reading them by length, so a newline inside a value becomes a forged record. GHSA-mpg7-vg3p-wc3m uses that to rewrite an entry's path, and its title says that leads to npm postinstall RCE on Windows.

A 1.5 KB archive hangs async extraction forever, and a 4-byte zstd header crashes the process on Node runtimes without native zstd.

What to do: upgrade to tar 8.0.2. Fifteen of the 17 advisories list 8.0.0 as the first patched version, and the path-reservation exhaustion bug needs 8.0.2. The only 7.x fix is 7.5.24, for one PAX size bug.

A major bump means testing your extraction code first, and npm ls tar shows where it comes in, often transitively. Until you're on 8.x, extract archives you didn't build in a throwaway container or as a user that can't write anything you care about.

WebSocket servers that buffer until they die

A blueprint-style row of linked storage tanks, with a magnifying lens over one green tank that bulges and spills small capsules from its seams.

A run of memory and crash bugs in WebSocket libraries, all reachable by an unauthenticated client.

The websocket-driver and permessage_deflate advisory text we have doesn't list patched versions. Check npm ls websocket-driver and your Gemfile.lock today, then read each advisory for its fix.

Patch brief

A blueprint-style tray of gears, springs, valves and hinges, with a magnifying lens over one cracked green gear.

Quick bits

AWS IAM gives each agent its own identity, in preview. The role still decides what a workload can do; the identity records which agent made each request, for IAM policies and CloudTrail. EKS Pod Identity supports it too, so two pods sharing one role stop looking identical in your logs.

Optimizely's experimentation script served malware. InfoQ reports that attackers compromised JavaScript delivered through Optimizely's Web Experimentation platform, so large brands' sites passed malware to visitors. Report URI counted 188 infected snippets across 178 organizations, and Optimizely says the flaw was exploited on November 16, 2026, and is now closed. If your pages load that snippet, read the write-up and Optimizely's guidance today.

Before you patch anything, list which of your services unpack a file or hold a socket open for someone you've never met.

← All Morning Merge Security issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →