Skip to content

Latest version of cli is pulling in insecure packages that have available patches #11543

Open

Description

@G-Rath

The latest version of the vercel cli is pulling in packages with known vulnerabilities that have available patches.

Current vulnerabilities:

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:

Activity

  1. added a commit that references this issue on May 9, 2024
  2. soulofmischief commented on Jun 10, 2024

    @soulofmischief

    Thanks for staying on top of this @G-Rath

  3. G-Rath commented on Jun 10, 2024

    @G-Rath
    ContributorAuthor

    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

  4. justinoboyle commented on Jun 12, 2024

    @justinoboyle

    This is very important for organizations that have security policies that require packages to be updated with all security patches.

  5. G-Rath commented on Sep 12, 2024

    @G-Rath
    ContributorAuthor

    Added new GHSA-9wv6-86v2-598j vulnerability, and marked micromatch as patched

  6. mrmckeb commented on Oct 10, 2024

    @mrmckeb
    Contributor

    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.

  7. chrisdenton-ct commented on Nov 12, 2024

    @chrisdenton-ct

    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.

  8. gaelperon commented on Nov 12, 2024

    @gaelperon

    +1 @chrisdenton-ct

    It's important for us too

  9. omonk commented on Nov 12, 2024

    @omonk

    @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

  10. burtek commented on Nov 12, 2024

    @burtek

    Apparently it's not an issue for Vercel if companies can't use Vercel because the nested dependencies are flagged. Strange business decision

  11. chrisdenton-ct commented on Nov 12, 2024

    @chrisdenton-ct

    @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

    Thanks, that's useful to know, though obviously I find that response from vercel to be disappointing.

  12. omonk commented on Nov 12, 2024

    @omonk

    I'll try and dig out the email tomorrow

  13. gaelperon commented on Nov 13, 2024

    @gaelperon

    I have sent an email to the Vercel security team

  14. omonk commented on Nov 13, 2024

    @omonk

    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.

  15. 5 remaining items

  16. chrisdenton-ct commented on Oct 30, 2025

    @chrisdenton-ct

    any news regarding path-to-regexp vulnerability? I'm still getting the message for this vulnerability via @vercel/routing-utils :)

    Sorry @wonderWoman1408 but I think Vercel are sticking pretty stubbornly to their position that they won't update dependencies.

  17. amerzad commented on Nov 17, 2025

    @amerzad
  18. shawnlknight commented on Jan 7, 2026

    @shawnlknight

    Any update on this vulnerability being fixed?

  19. hferello commented on Jan 14, 2026

    @hferello

    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 --force
    Will 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

  20. johncip commented on Apr 18, 2026

    @johncip

    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.

  21. sasannnn commented on Jun 6, 2026

    @sasannnn

    I finally resolved this issue ... by switching to Netlify. No more vulnerable dependency in prod.

  22. alex-radulescu-b1 commented on Jun 16, 2026

    @alex-radulescu-b1

    Any update on a fix for this?
    Vulnerable packages are not fun especially these crazy days 😰 .

  23. mjbooth-ct commented on Sep 24, 2026

    @mjbooth-ct

    The undici item here has grown. @vercel/node still pins undici to exactly 5.28.4 (checked @vercel/[email protected] in [email protected]), and eight advisories published since this issue opened have no 5.x fix:

    Advisory CVE First patched
    GHSA-2mjp-6q6p-2qxm CVE-2026-1525 6.24.0
    GHSA-4992-7rv2-5pvq CVE-2026-1527 6.24.0
    GHSA-35p6-xmwp-9g52 CVE-2026-6733 6.27.0
    GHSA-p88m-4jfj-68fv CVE-2026-9679 6.27.0
    GHSA-g8m3-5g58-fq7m CVE-2026-11525 6.27.0
    GHSA-8xcm-r25x-g524 CVE-2026-16728 6.28.0
    GHSA-v3r7-h72x-cjcm CVE-2026-16729 6.28.0
    GHSA-m8rv-5g2x-5cg5 CVE-2026-15157 6.28.0

    So #13380 (to 5.29.0) would now clear only GHSA-c76h-2ccp-4975 and GHSA-cxrh-j4jr-qwg3.

    @vercel/node only uses undici's request and Headers in dist/dev-server.mjs. We forced 6.28.0 with a yarn resolution ("**/@vercel/node/undici": "^6.28.0") and ran startDevServer on a Node function and an edge function, GET and POST each: status, headers, set-cookie and 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?

  24. samuelcole commented on Sep 28, 2026

    @samuelcole

    Still reproducing on the latest release: [email protected] resolves @vercel/[email protected], which still pins undici to exactly 5.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.0 through >=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/node onto 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions