npm audit Found 69 Vulnerabilities in My Two SaaS Apps. Most of the Work Was Sorting Them.
At Null Studio I write maintenance guides for clients. One of them, on what software costs after launch , splits upkeep into four kinds: corrective, adaptive, preventive and security. It ends with seven questions to settle before launch. The first one is "Who receives deprecation and security notices from each platform and service we use?" I had never asked that about my own products. So this…
The analysis of two SaaS applications revealed 69 vulnerabilities. To sort through them, the reporter first audited the lockfile representing the production deployment, pulling the package.json and package-lock.json files from the deployed branch to ensure auditing the actual code that runs. This step revealed 41 vulnerabilities in the VoiceDash app and 28 in the Upwork Scout app.
The reporter then removed development dependencies to focus on production-specific risks. However, they discovered that the audit tool incorrectly included vulnerable development tools like Prisma, which were not part of the production environment. They realized the tool trusted the package.json file, which contained errors. For Upwork Scout, most vulnerabilities came through firebase-admin, next, and a few others, while for VoiceDash, Prisma was the culprit, bringing 15 of the 27 production advisories.
After correcting the package.json file, the reporter identified the most pressing vulnerabilities, starting with request path issues like Next.js and firebase-admin. The next steps included patching the issues, with one case requiring a major version upgrade of Prisma, and another needing a Firebase admin version upgrade in a test environment.
The reporter also noted that some issues were transitive and would resolve automatically with future updates. Despite the findings, no automated notifications were generated as Dependabot alerts were disabled in the repositories.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to