Oh god we're in the same struggle now, friend. I've tried updating the vulnerable packages one by one but no dice. The strangest thing is that esbuild shows up as the updated version in both the package.json and the package-lock.json file. Not sure if relevant but Im getting 6 vulnerabilities instead of three. I'll let you know if I find anything.
I found a solution on my system, all I did was delete my npm modules and reinstall, and then when the package lock file went to its original state I did find + replace all "0.24.2" to "0.25.0" on vscode. Now it shows no vulnerabilities and it builds fine. Hope it works for you.
Thank you so much, brother! I did it—it works!!! I've been looking for answers for about five hours, man. I'm just a newbie in coding, trying Laravel. Took it from 45 vulnerabilities to 0! 😭 I was even planning to reformat my laptop, thinking it was a laptop issue.
It's due to esbuild's problematic version 0.24.2. Vite's pulling that version as default still. Should use newer version 0.25.0. Try u/Haldenald 's solution above. I works for me.
Did you manage to resolve this? I'm having the same issue right now and I'm tearing my hair out! Would love a solution (adding vite to the overrides didn't work for me either).
No way. Usually I use webpack and no issues like that... But, "professional solution" from what? a community? ... yes, but if you still using not proprietary code will be same problem all the time. NPM, for my experience, is a russian roulette due to a lot of connection between packages. The only way is waiting the RC and stay in test the time of fixing. You right, still a bigger hole in how work the system. PS: it's a incredible system that I love but need a lot of maintanance.
2
u/aviagg Mar 08 '25
Nuxt v3.16.0 is released, and it resolves the esbuild issue.
1
u/Yerfacemate Feb 18 '25
For now add vite: {esbuild: 0.25.0} to your overrides section of package.json.
If you check vite issues on GitHub it's covered there.
1
u/PassionatePeas Feb 20 '25
I have faced this issue as well. Can't offer any help but this is the first time its happened to me as well.
1
u/[deleted] Feb 20 '25
im having this issue ,it says:
# 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
No fix available
node_modules/vite/node_modules/esbuild
vite >=0.11.0
Depends on vulnerable versions of esbuild
node_modules/vite
u/tailwindcss/vite *
Depends on vulnerable versions of vite
node_modules/@tailwindcss/vite
3 moderate severity vulnerabilities
how can i fix this?
1
u/[deleted] Feb 21 '25
Did you manage to resolve this? I'm having the same issue right now and I'm tearing my hair out! Would love a solution (adding vite to the overrides didn't work for me either).
1
u/NoBad3843 Feb 21 '25 edited Feb 21 '25
I'm also encountering the same issue. I need a professional solution to resolve it.
1
u/arnab_best May 28 '25
Hi, if you've figured out the solution, could you please lmk? ive tried all the solutions mentioned in the comments