Repository navigation
Open
Description
The latest version of the vercel cli is pulling in packages with known vulnerabilities that have available patches.
Current vulnerabilities:
-
path-to-regexpv6.1.0, via@vercel/routing-utilsand@vercel/remix-builder -
tarv4.4.18, via@vercel/fun(patched in v1.1.5, just waiting for [cli] bump@vercel/funto v1.1.5 #13070 to land) -
undiciv5.28.4, via@vercel/node(waiting on Updateundiciin@vercel/node#13380 to be landed and released) -
esbuildv0.14.47, via@vercel/nodeand@vercel/gatsby-plugin-vercel-builder
While I don't believe any of these are exploitable in the context of this cli, they are a nuisance since non-breaking patches are available and security policies can make these expensive to ignore.
`npm audit` output as of 2025-06-10
# npm audit report
esbuild <=0.24.2
Severity: moderate
esbuild enables any website to send any requests to the development server and read the response - https://github.com/advisories/GHSA-67mh-4wv8-2f99
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/esbuild
@vercel/gatsby-plugin-vercel-builder *
Depends on vulnerable versions of esbuild
node_modules/@vercel/gatsby-plugin-vercel-builder
@vercel/static-build >=1.3.0
Depends on vulnerable versions of @vercel/gatsby-plugin-vercel-builder
node_modules/@vercel/static-build
vercel >=25.2.1
Depends on vulnerable versions of @vercel/node
Depends on vulnerable versions of @vercel/remix-builder
Depends on vulnerable versions of @vercel/static-build
node_modules/vercel
@vercel/node >=2.3.1
Depends on vulnerable versions of esbuild
Depends on vulnerable versions of path-to-regexp
Depends on vulnerable versions of undici
node_modules/@vercel/node
path-to-regexp 4.0.0 - 6.2.2
Severity: high
path-to-regexp outputs backtracking regular expressions - https://github.com/advisories/GHSA-9wv6-86v2-598j
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/path-to-regexp
@vercel/remix-builder <=2.0.3 || >=5.2.4
Depends on vulnerable versions of path-to-regexp
node_modules/@vercel/remix-builder
undici <=5.28.5
Severity: moderate
Use of Insufficiently Random Values in undici - https://github.com/advisories/GHSA-c76h-2ccp-4975
undici Denial of Service attack via bad certificate data - https://github.com/advisories/GHSA-cxrh-j4jr-qwg3
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/undici
8 vulnerabilities (4 moderate, 4 high)
To address all issues (including breaking changes), run:
npm audit fix --force
Related issues and pull requests:
Reacted by Ethan, Josh Landsman, teamclouday, Bartosz, soulofmischief, Justin O'Boyle, musjj, Ray Denis, phl23, Matt and 26 more
Metadata
Metadata
Assignees
Labels
No labels
Activity
(chore) Update packages
soulofmischief commentedon Jun 10, 2024
Thanks for staying on top of this @G-Rath
G-Rath commentedon Jun 10, 2024
Thanks, but unfortunately I'm not confident that they'll get addressed anytime soon - we're currently in the process of reviewing moving our Vercel apps to Netlify since they setup a whole internal workflow to stay on top of these updates in response to my equivalent issue about their cli (which is even more impressive given they use a shrink-wrap.json where Vercel just pins their top level dependences).
I will continue to update this issue for the foreseeable future though
justinoboyle commentedon Jun 12, 2024
This is very important for organizations that have security policies that require packages to be updated with all security patches.
Update undici dep to address vulnerabilities (#11749)
G-Rath commentedon Sep 12, 2024
Added new GHSA-9wv6-86v2-598j vulnerability, and marked
micromatchas patchedmrmckeb commentedon Oct 10, 2024
I realise that these are probably low priority for the team as these are probably not issues for the CLI, but it would help teams like ours if these were cleaned up. Dependabot raises these as security issues, and we need to dig in and assess if they really are issues or not.
CC @trek to perhaps raise with the team.
chrisdenton-ct commentedon Nov 12, 2024
Hello,
I've got all of these vulnerabilities showing up in GitHub - including undici, btw - though I'm mainly concerned about path-to-regexp and semver as they are both rated as high risk.
Now I appreciate that the vulnerabilities may not be exploitable and therefore the risk level is arguably wrong, but even so, we've still got to convince our external auditors of this, which is going to take time and if we fail to do so then that's our security certification up in smoke. I'm sure many other vercel users will have similar problems.
So I would like to respectfully request an update, and reiterate that whilst this may be low priority for some people it is not low priority for everyone. Far from it.
gaelperon commentedon Nov 12, 2024
+1 @chrisdenton-ct
It's important for us too
omonk commentedon Nov 12, 2024
@chrisdenton-ct - I emailed vercel security directly about this a few months ago.
Essentially they said they're always keeping track of potential security threats and they're aware of these reports but they don't consider them issues and they're not going to fix it
burtek commentedon Nov 12, 2024
Apparently it's not an issue for Vercel if companies can't use Vercel because the nested dependencies are flagged. Strange business decision
chrisdenton-ct commentedon Nov 12, 2024
Thanks, that's useful to know, though obviously I find that response from vercel to be disappointing.
omonk commentedon Nov 12, 2024
I'll try and dig out the email tomorrow
gaelperon commentedon Nov 13, 2024
I have sent an email to the Vercel security team
omonk commentedon Nov 13, 2024
I emailed the security team requesting they fix the issues listed in this specific issue
Their reply on 23 Sept 2024:
Thank you for contacting the Vercel security team. Our software is patched in alignment with our internal vulnerability management process timelines, which relies heavily on contextualisation of vulnerabilities (not just CVSS rating).
We'll patch this vulnerability in due course, but please understand this may not be immediate based on the context of the vulnerability. If you would like to see this patched sooner and to contribute to the open source software ecosystem, the team would welcome any PRs to the repository.
Please feel free to reach out if you have any further questions or concerns.
My thoughts
All of the reported vulnerabilities have PRs against them. Some are still failing CI but it does feel a bit spicy to ask for paying customers to fix the product they're paying to use.
5 remaining items
chrisdenton-ct commentedon Oct 30, 2025
Sorry @wonderWoman1408 but I think Vercel are sticking pretty stubbornly to their position that they won't update dependencies.
amerzad commentedon Nov 17, 2025
shawnlknight commentedon Jan 7, 2026
Any update on this vulnerability being fixed?
hferello commentedon Jan 14, 2026
I'm getting these npm audit report warnings:
Current packages:
"@vercel/edge-config": "^1.4.3",
"@vercel/functions": "^3.3.5",
"vercel": "^50.3.2",
path-to-regexp 4.0.0 - 6.2.2
Severity: high
path-to-regexp outputs backtracking regular expressions - GHSA-9wv6-86v2-598j
fix available via
npm audit fix --forceWill install [email protected], which is a breaking change
node_modules/@vercel/node/node_modules/path-to-regexp
node_modules/@vercel/remix-builder/node_modules/path-to-regexp
@vercel/node >=2.11.0
Depends on vulnerable versions of path-to-regexp
Depends on vulnerable versions of undici
node_modules/@vercel/node
@vercel/elysia *
Depends on vulnerable versions of @vercel/node
node_modules/@vercel/elysia
vercel 28.12.3 || >=28.17.0
Depends on vulnerable versions of @vercel/elysia
Depends on vulnerable versions of @vercel/express
Depends on vulnerable versions of @vercel/fastify
Depends on vulnerable versions of @vercel/h3
Depends on vulnerable versions of @vercel/hono
Depends on vulnerable versions of @vercel/koa
Depends on vulnerable versions of @vercel/nestjs
Depends on vulnerable versions of @vercel/node
Depends on vulnerable versions of @vercel/remix-builder
node_modules/vercel
@vercel/express *
Depends on vulnerable versions of @vercel/node
node_modules/@vercel/express
@vercel/fastify *
Depends on vulnerable versions of @vercel/node
node_modules/@vercel/fastify
@vercel/h3 *
Depends on vulnerable versions of @vercel/node
node_modules/@vercel/h3
@vercel/hono *
Depends on vulnerable versions of @vercel/node
node_modules/@vercel/hono
@vercel/koa *
Depends on vulnerable versions of @vercel/node
node_modules/@vercel/koa
@vercel/nestjs *
Depends on vulnerable versions of @vercel/node
node_modules/@vercel/nestjs
@vercel/remix-builder <=2.0.3 || >=5.2.4
Depends on vulnerable versions of path-to-regexp
node_modules/@vercel/remix-builder
fix: add scoped resolutions for undici, srvx, and @tootallnate/once C…
fix: add scoped resolutions for undici, srvx, and @tootallnate/once C…
fix: add scoped resolutions for undici, srvx, and @tootallnate/once C…
fix(deps): resolve CVE-2026-31802, CVE-2026-29786, CVE-2026-27903 (+5…
johncip commentedon Apr 18, 2026
Unless I'm mistaken, some of these are almost a year old, and already have PRs.
Right now it's not worth the noise to add the tool as a dev dependency, which makes it less useful.
I do get that the recommended setup is to install it globally, but it's not unreasonable or rare for people to have local dev scripts/tooling that call out to the CLI tool, after which it becomes a dev dependency, much like eslint, because the project setup assumes that people have it.
Would be good to know if there are plans to bump the versions, it's been decided that it's not getting done, etc.
sasannnn commentedon Jun 6, 2026
I finally resolved this issue ... by switching to Netlify. No more vulnerable dependency in prod.
alex-radulescu-b1 commentedon Jun 16, 2026
Any update on a fix for this?
Vulnerable packages are not fun especially these crazy days 😰 .
docs(security): document vercel transitive vulnerability status
mjbooth-ct commentedon Sep 24, 2026
The undici item here has grown.
@vercel/nodestill pinsundicito exactly5.28.4(checked@vercel/[email protected]in[email protected]), and eight advisories published since this issue opened have no 5.x fix:So #13380 (to 5.29.0) would now clear only GHSA-c76h-2ccp-4975 and GHSA-cxrh-j4jr-qwg3.
@vercel/nodeonly uses undici'srequestandHeadersindist/dev-server.mjs. We forced 6.28.0 with a yarn resolution ("**/@vercel/node/undici": "^6.28.0") and ranstartDevServeron a Node function and an edge function, GET and POST each: status, headers,set-cookieand body matched 5.28.4. The one difference is undici 6 needs Node >= 18.17 (5.x needs >= 14).Could the pin move to
^6.28.0?override path-to-regexp under vercel routing-utils
samuelcole commentedon Sep 28, 2026
Still reproducing on the latest release:
[email protected]resolves@vercel/[email protected], which still pinsundicito exactly5.28.4.We moved the CLI from a global install to a lockfile-pinned devDependency so the version is known and upgraded like everything else, and that makes this visible in every
pnpm audit. Of the 14 undici advisories it reports, 11 are fixed only in 6.x (>=6.23.0through>=6.28.0), 4 of them high: WebSocket permessage-deflate memory consumption, the WebSocket client DoS, the unhandled exception in the WebSocket client, and request/response smuggling. So there is no within-major override that clears them. Everything else the CLI pulls in (tar,js-yaml,minimatch,smol-toml,ajv) does have a within-major fix, which makes undici the one that can't be worked around downstream.Is #13380 (open since May 2025) still the plan, or is there another path to moving
@vercel/nodeonto undici 6? #17575 lists undici among the packages kept on their current major for code-migration reasons, and #17629/#17634 suggest the bundled undici 5 is already colliding with Node 26's own. A timeline, even a rough one, would let downstream projects decide between holding and forking.🤖 Generated with Claude Code. Reviewed, and posting authorized, by Sam.