---
title: "Comment by Rishabh Mishra on \"AI Found 29,000 Bugs in Open Source. Here's What Your MERN Stack Should Do About It\" | Hashnode"
description: "Good rundown. One thing I'd add: when the vulnerable package is three levels deep and the direct dependency hasn't shipped a patch yet, npm overrides (or pnpm o"
url: "https://hashnode.com/posts/ai-found-29-000-bugs-in-open-source-here-s-what-your-mern-stack-should-do-about-it/6ace2444833d2a0566b39689/comment/6ace30f76f1521def033f73c"
---

[Discussion](https://hashnode.com/posts/ai-found-29-000-bugs-in-open-source-here-s-what-your-mern-stack-should-do-about-it/6ace2444833d2a0566b39689)

Comment [AI Found 29,000 Bugs in Open Source. Here's What Your MERN Stack Should Do About It](https://hashnode.com/posts/ai-found-29-000-bugs-in-open-source-here-s-what-your-mern-stack-should-do-about-it/6ace2444833d2a0566b39689)

[Rishabh Mishra](https://hashnode.com/@rushdeploy)

[Oct 13](https://hashnode.com/posts/ai-found-29-000-bugs-in-open-source-here-s-what-your-mern-stack-should-do-about-it/6ace2444833d2a0566b39689/comment/6ace30f76f1521def033f73c)

Good rundown. One thing I'd add: when the vulnerable package is three levels deep and the direct dependency hasn't shipped a patch yet, `npm overrides` (or pnpm overrides) lets you force the fixed transitive version without waiting on upstream. Saved me more than once. And enforcing `npm ci` instead of `npm install` in CI/deploy so the lockfile you audited is the one that actually ships — that one bites people quietly. For the transitive cases with no patch yet, do you pin-and-wait or swap the package out?

[Nitesh Kumar Tudu](https://hashnode.com/@nitesh000)

[Oct 15](https://hashnode.com/posts/ai-found-29-000-bugs-in-open-source-here-s-what-your-mern-stack-should-do-about-it/6ace2444833d2a0566b39689/comment/6ace30f76f1521def033f73c#reply-6ad06557111119ba433370d8)

the `npm ci` is really a good point, i'll update the blog. but for the overrides i have some mixed feeling for it, i did face some weird ui bugs while i was using the MUI and emotion packages. it might be a skill issue from before, but it does breaks a lot of things if there are multiple packages are using a common one, but with different version as dependencies.

and if there is a similar case vulnerable package, i just pin and wait only if it's a low severity. or i'll have to swap out the package.
