Skip to content

Upgrade tar used to extract SWC binary #89158

Merged
eps1lon merged 2 commits intovercel:canaryfrom
LucianBuzzo:lucianbuzzo/CVE-2026-23950
Jan 29, 2026
Merged

Upgrade tar used to extract SWC binary #89158
eps1lon merged 2 commits intovercel:canaryfrom
LucianBuzzo:lucianbuzzo/CVE-2026-23950

Conversation

@LucianBuzzo
Copy link
Copy Markdown
Contributor

@LucianBuzzo LucianBuzzo commented Jan 28, 2026

Stacked on #89201

See GHSA-r6q2-hw4h-h46w

@nextjs-bot
Copy link
Copy Markdown
Contributor

Allow CI Workflow Run

  • approve CI run for commit: 40e9675de6e6245c6350999c09662c58625a4b3e

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@eps1lon
Copy link
Copy Markdown
Member

eps1lon commented Jan 28, 2026

Doesn't look like we're affected since we're controlling the tar archive (SWC).

Can you make sure you ran pnpm types-and-precompiled and committed the changes?

@eps1lon eps1lon changed the title fix(deps): resolve CVE-2026-23950 by upgrading tar to v7.5.7 Upgrade tar used to extract SWC binary Jan 28, 2026
@LucianBuzzo
Copy link
Copy Markdown
Contributor Author

@eps1lon Yep, I don't think this CVE is material to next 👍
It does get flagged by tools like the AWS vulnerability scanner which causes noise downstream, hence my PR here 😄
I tried running pnpm types-and-precompiled but I'm hitting a seemingly unrelated issue with zlib:

next:typescript: ../../node_modules/.pnpm/minizlib@3.1.0/node_modules/minizlib/dist/commonjs/index.d.ts:21:205 - error TS2694: Namespace '"zlib"' has no exported member 'ZstdCompress'.
next:typescript: 
next:typescript: 21 export type ZlibHandle = realZlib.Gzip | realZlib.Gunzip | realZlib.Deflate | realZlib.Inflate | realZlib.DeflateRaw | realZlib.InflateRaw | realZlib.BrotliCompress | realZlib.BrotliDecompress | realZlib.ZstdCompress | realZlib.ZstdDecompress;
next:typescript:                                                                                                                                                                                                                ~~~~~~~~~~~~
next:typescript: ../../node_modules/.pnpm/minizlib@3.1.0/node_modules/minizlib/dist/commonjs/index.d.ts:21:229 - error TS2694: Namespace '"zlib"' has no exported member 'ZstdDecompress'.
next:typescript: 
next:typescript: 21 export type ZlibHandle = realZlib.Gzip | realZlib.Gunzip | realZlib.Deflate | realZlib.Inflate | realZlib.DeflateRaw | realZlib.InflateRaw | realZlib.BrotliCompress | realZlib.BrotliDecompress | realZlib.ZstdCompress | realZlib.ZstdDecompress;
next:typescript:                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~
next:typescript: 
next:typescript: 
next:typescript: Found 2 errors.
next:typescript:  ELIFECYCLE  Command failed with exit code 1.
next:typescript: ERROR: command finished with error: command (/Volumes/owc-express-1m2/projects/next.js/packages/next) /Users/lucianbuzzo/Library/pnpm/.tools/pnpm/9.6.0/bin/pnpm run typescript exited (1)
next#typescript: command (/Volumes/owc-express-1m2/projects/next.js/packages/next) /Users/lucianbuzzo/Library/pnpm/.tools/pnpm/9.6.0/bin/pnpm run typescript exited (1)

Any idea what I might be doing wrong?

@eps1lon
Copy link
Copy Markdown
Member

eps1lon commented Jan 28, 2026

Yeah there's more type issues this unraveled that I'm fixing now so that we can land this soon.

@eps1lon eps1lon mentioned this pull request Jan 29, 2026
@eps1lon eps1lon force-pushed the lucianbuzzo/CVE-2026-23950 branch from 40e9675 to 7b40e1d Compare January 29, 2026 00:12
@nextjs-bot
Copy link
Copy Markdown
Contributor

nextjs-bot commented Jan 29, 2026

Tests Passed

@LucianBuzzo
Copy link
Copy Markdown
Contributor Author

Awesome thanks @eps1lon - it's much appreciated.

@eps1lon eps1lon force-pushed the lucianbuzzo/CVE-2026-23950 branch from db902ea to e388d46 Compare January 29, 2026 12:46
@eps1lon eps1lon force-pushed the lucianbuzzo/CVE-2026-23950 branch from e388d46 to d009027 Compare January 29, 2026 15:44
@nextjs-bot nextjs-bot added the create-next-app Related to our CLI tool for quickly starting a new Next.js application. label Jan 29, 2026
@@ -32,7 +32,6 @@
"@types/cross-spawn": "6.0.0",
"@types/node": "20.14.2",
"@types/prompts": "2.4.2",
"@types/tar": "6.1.13",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7.x ships with types

@@ -1,7 +1,7 @@
import fs from 'fs'
import path from 'path'
import * as Log from '../build/output/log'
import tar from 'next/dist/compiled/tar'
import { x } from 'next/dist/compiled/tar'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eps1lon eps1lon force-pushed the lucianbuzzo/CVE-2026-23950 branch from d009027 to a94e96c Compare January 29, 2026 16:09
@eps1lon eps1lon force-pushed the lucianbuzzo/CVE-2026-23950 branch from a94e96c to ab2151c Compare January 29, 2026 16:57
@eps1lon eps1lon merged commit a5a9293 into vercel:canary Jan 29, 2026
278 of 280 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

create-next-app Related to our CLI tool for quickly starting a new Next.js application. locked type: next

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants