Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update esbuild to address GHSA-67mh-4wv8-2f99 #7070

Open
G-Rath opened this issue Feb 27, 2025 · 5 comments
Open

Update esbuild to address GHSA-67mh-4wv8-2f99 #7070

G-Rath opened this issue Feb 27, 2025 · 5 comments
Assignees
Labels
type: security code to address security issues

Comments

@G-Rath
Copy link

G-Rath commented Feb 27, 2025

It looks like as of v19 netlify-cli pulls in v0.19.11 and v0.21.2 of esbuild which are both vulnerable to GHSA-67mh-4wv8-2f99 - while I would be surprised if this is exploitable, but it would still be good to have addressed for security compliance.

npm ls esbuild
└─┬ [email protected]
  ├─┬ @netlify/[email protected]
  │ ├─┬ @netlify/[email protected]
  │ │ └─┬ @netlify/[email protected]
  │ │   └── [email protected] deduped
  │ └─┬ @netlify/[email protected]
  │   └── [email protected] deduped
  ├─┬ @netlify/[email protected]
  │ └── [email protected]
  └─┬ @netlify/[email protected]
    └── [email protected]

Note also it would be good to have all netlify packages using the same version especially since esbuild is a binary-based package, so having multiple versions of it in the tree is annoying.

@G-Rath
Copy link
Author

G-Rath commented Feb 27, 2025

Relates a bit to #6731, though in this particular case not using shrinkwrap might not have helped since this is a 0.x version of a build tool so it would be fair to use ~, and the fix was not backported to any old versions

Also, I didn't feel this was a "bug" or a "feature" so I used the "blank issue" option - let me know if in future you'd prefer I open these types of tickets as one of the mentioned types :)

@serhalp
Copy link
Collaborator

serhalp commented Feb 28, 2025

Thanks for reporting this, @G-Rath! We do see the security alert internally. It looks like we'll need to update some dependencies in some other Netlify repos to be able to address this in Netlify CLI. We'll get this prioritized.

@serhalp serhalp added the type: security code to address security issues label Feb 28, 2025
@serhalp serhalp self-assigned this Feb 28, 2025
@XhmikosR
Copy link
Contributor

XhmikosR commented Mar 28, 2025

Note that this pinning of dependencies results in hundreds of duplicate packages across your netlify packages... Related #3941.

Quickly check the duplicate packages: https://npmgraph.js.org/?q=netlify-cli

@G-Rath
Copy link
Author

G-Rath commented Apr 8, 2025

@serhalp any update on this?

@XhmikosR
Copy link
Contributor

XhmikosR commented Apr 9, 2025

IMHO there shouldn't be any pinning at least for Netlify's own packages. Assuming you guys follow semver, there's no gain from pinning your own packages. It should help with deduplication a bit.

Third-party packages is a whole other situation, though, and requires making sure you just don't bump major deps blindly across your own packages so that they can be deduplicated when possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: security code to address security issues
Projects
None yet
Development

No branches or pull requests

3 participants