Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

abhisheknayak_1111's avatar

How to Handle Vulnerabilities in Laravel Mix (^6.0.0 and ^6.0.49)?

I'm using Laravel Mix with both "laravel-mix": "^6.0.0" and the latest "^6.0.49" (beta), but npm audit reports several vulnerabilities—moderate.

Even after running npm audit fix and npm audit fix --force, some issues remain unresolved.

  • Is there a recommended way to patch or override these vulnerable dependencies?
  • Should I consider switching to Vite for better long-term support and security?

Any guidance or best practices would be appreciated!

0 likes
2 replies
JussiMannisto's avatar

Mix is no longer maintained, so there is no fix.

Should I consider switching to Vite for better long-term support and security?

Yes. You might find this page useful.

1 like

Please or to participate in this conversation.