Subscribe free
Morning Merge Security · Tuesday, December 1, 20264 min read

cross-spawn's Windows injection; React Router SSR fixes

Also: Vite+ and isomorphic-git trust cloned repos, engine.io crash, PyTables RCE

If you ship Node tooling that runs on Windows, check your cross-spawn version first. The rest of today is about inputs you thought were inert: a route path, a cloned repo, an HDF5 file.

The main thing

A forest-green magnifying lens hovers over a pipeline, revealing a small relay box mid-run that splits the flow and drips from its seam.

cross-spawn has a critical command injection on Windows (GHSA-ghv9-86vm-4v8m, CVE-2026-137199). Only Windows is affected, but the advisory's first example is npm itself.

On Windows, cross-spawn runs anything that isn't an .exe or .com through cmd.exe and escapes the arguments for it. A batch file that forwards its arguments with %* makes cmd.exe parse them a second time.

cross-spawn only accounted for that second parse when the batch file was an npm cmd-shim in node_modules/.bin. Every other batch file was exposed, including npm.cmd: spawn.sync('npm', ['" & calc & "']) opens Calculator.

The advisory lists three more ways through. A trailing dot or space in the command name (tool.bat) skipped batch detection, because Windows strips it. %VAR% expanded if a variable named VAR^ existed. And !VAR! expanded when delayed expansion was on in the registry.

You're exposed if your code passes untrusted input as arguments to a command that runs through cmd.exe on Windows. options.shell isn't affected, since it doesn't escape by design.

What to do: upgrade to cross-spawn 7.1.0, or 6.0.7 on the 6.x line. It's usually a transitive dependency, so check your lockfile rather than your package.json.

The fix quotes batch arguments the way Rust has since BatBadBut, neutralizes %, and rejects line breaks with a TypeError. The maintainers say some cases can't be fixed by any escaping, such as a batch file that uses %~1 unquoted. Where possible, call executables directly, not through batch files.

React Router's SSR fixes

A forest-green magnifying lens over a road junction shows its single signpost sprouting a heavy, ever-widening fan of extra arms.

React Router has an unauthenticated denial of service in SSR route discovery (CVE-2026-139995, rated high). A crafted request makes the server expand route-manifest paths without a bound. In Framework Mode you need server-side rendering with lazy route discovery enabled. The unstable RSC modes are exposed through RSC data requests too.

A second advisory covers prototype pollution in the vendored turbo-stream deserializer (CVE-2026-139996, rated high). It affects Framework Mode and needs attacker influence over serialized data that the decoder processes.

Both are fixed in react-router 7.18.5 and 8.5.1. The repository advisories are dated November 18, 2026, and reached the GitHub Advisory Database on December 1. If you run SSR in Framework Mode, confirm you're on a patched version today; the DoS needs no login.

A cloned repo shouldn't run code

A forest-green magnifying lens over an opened crate on a workbench reveals a tag tied inside, beside a hose that runs out of the crate to a tank outside the workshop.

Two tools published advisories this week for the same mistake: treating a repository you just cloned as trusted.

Vite+ runs a package manager fetched from a registry the repo names (CVE-2026-137191, rated high). A newly installed or upgraded vite-plus downloads its pinned pnpm build from the registry in the project's .npmrc and executes it without checking a digest. One line in a cloned repo's .npmrc gets code run on vp --version, with no script in the repo.

A sibling advisory covers vp env use (CVE-2026-137190, rated high). It interpolates the registry's version string into a shell export unquoted, so a malicious registry answers with shell commands. The advisory text we have doesn't list patched versions; check both advisories before upgrading.

isomorphic-git can write outside the worktree through a symlink (CVE-2026-86017, rated high). A cherry-pick that crosses a tracked symlink, such as one pointing at /, writes files outside the worktree.

A second bug lets a tree entry named .git::$INDEX_ALLOCATION write into the real .git on Windows NTFS (CVE-2026-77355, rated high). The proof replaces .git/config on clone. If you clone untrusted repos with isomorphic-git, read both before your next release.

Patch brief

Quick bits

GitHub will reject OAuth redirect URIs with fragments from February 1, 2027. GitHub says a fragment can be used to intercept an authorization code or token during a redirect. If your GitHub App or OAuth app's callback URL contains #, remove it now; until then users see a caution message. GitHub Enterprise Server isn't affected.

npm staged publishing can now release a batch under one 2FA approval. The approval is bound to the exact packages and versions shown. npm calls it a step toward making staged publishing a mandatory fallback for monorepos that publish with bypass-2FA tokens.

Before you clone the next interesting repo, check which of your tools read its .npmrc before you've read anything.

← All Morning Merge Security issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →