You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using pnpm --filter <filter> --prod --no-optional deploy app to create an app bundle, we found that esbuild is included in the packages that were pulled into the bundle.
After tracing the dependencies, we found that @auth/sveltekit "pulls" vite as a peer dependency, which in turn pulls esbuild as a dependency.
This seems like unwanted behavior, as vite and esbuild should not be needed after the package is built, and it flagged the package in a vulnerability scanner.
How to reproduce
Create a prod bundle of a package requiring @auth/sveltekit :
The text was updated successfully, but these errors were encountered:
LoricAndre
added
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Oct 20, 2024
LoricAndre
changed the title
esbuild found in production (peer)dependencies in sveltekit app
Vulnerability caused by esbuild being present in sveltekit app
Oct 30, 2024
balazsorban44
changed the title
Vulnerability caused by esbuild being present in sveltekit app
esbuild found in production (peer)dependencies in sveltekit app
Nov 1, 2024
If you think this causes a security issue, please read https://authjs.dev/security and reach out responsibly instead. I reached out to the Svelte team to clarify, for what it's worth, haven't gotten an answer yet.
Environment
package.json
Reproduction URL
https://github.com/LoricAndre/next-auth-example
Describe the issue
After using
pnpm --filter <filter> --prod --no-optional deploy app
to create an app bundle, we found that esbuild is included in the packages that were pulled into the bundle.After tracing the dependencies, we found that
@auth/sveltekit
"pulls" vite as a peer dependency, which in turn pulls esbuild as a dependency.This seems like unwanted behavior, as vite and esbuild should not be needed after the package is built, and it flagged the package in a vulnerability scanner.
How to reproduce
Create a prod bundle of a package requiring
@auth/sveltekit
:pnpm deploy /tmp/app --filter app find /tmp/app/node_modules -name '*esbuild*'
Result :
Expected behavior
This should not include
vite
oresbuild
The text was updated successfully, but these errors were encountered: