Skip to content

socket.io and engine.io dependencies still include vulnerable versions of cookie and path-to-regexp #39303

Open
@kelseyn12

Description

@kelseyn12

Preliminary Checks

Description

While using Gatsby v5.14.3, npm audit still reports the following vulnerabilities:

cookie < 0.7.0: GHSA-pxg6-pf52-xh8x

path-to-regexp < 0.1.12: GHSA-rhx6-c78j-4q9w

These are coming from socket.io > engine.io, both used as part of Gatsby’s development server stack.

Would love to see these bumped or replaced in a future release to clean up audits and reduce noise in Dependabot PRs.

Thanks for all your hard work! Gatsby is awesome!

Reproduction Link

https://github.com/gatsbyjs/gatsby-starter-hello-world

Steps to Reproduce

  1. Clone the starter repo above and install dependencies using npm install.
  2. Run npm audit.
  3. Review vulnerabilities listed under gatsbysocket.io and engine.io.

Expected Result

No known high or moderate vulnerabilities in default Gatsby dependency tree.

Actual Result

npm audit reports high and moderate vulnerabilities caused by outdated versions of cookie and path-to-regexp inside Gatsby's dev dependencies (socket.io and engine.io).

Environment

gatsby info --clipboard

Config Flags

No custom flags used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: triage neededIssue or pull request that need to be triaged and assigned to a reviewertype: bugAn issue or pull request relating to a bug in Gatsby

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions