Skip to content

chore(deps): update NestJS packages and fix npm audit vulnerabilities#363

Open
misbahul-alam wants to merge 1 commit intonestjs:masterfrom
misbahul-alam:chore/update-dependencies
Open

chore(deps): update NestJS packages and fix npm audit vulnerabilities#363
misbahul-alam wants to merge 1 commit intonestjs:masterfrom
misbahul-alam:chore/update-dependencies

Conversation

@misbahul-alam
Copy link
Copy Markdown

@misbahul-alam misbahul-alam commented Mar 29, 2026

Description

This PR updates the NestJS core packages to their latest versions and fixes multiple security vulnerabilities reported by npm audit.

Changes Made:

  • Updated @nestjs/core, @nestjs/common, @nestjs/platform-express, @nestjs/cli, and related packages
  • Added overrides section in package.json to safely resolve transitive vulnerabilities (ajv, path-to-regexp, picomatch, brace-expansion, file-type, etc.)
  • Reduced vulnerabilities from 22 to a much lower number
  • Verified that the application still builds and runs correctly

Testing Done:

  • Ran npm install
  • Ran npm run build
  • Ran npm run start:dev ✅ (Hello World still works)
  • Ran npm audit after changes

Notes:

  • Used overrides instead of --force to avoid breaking changes
  • No breaking changes introduced to the starter template

This is my first contribution to the NestJS TypeScript Starter. Feedback is welcome! 🙏

Type of Change

  • Dependency update / Security fix

- Updated @nestjs/core, @nestjs/common, @nestjs/platform-express, etc.
- Added 'overrides' section to safely fix vulnerable transitive dependencies
- Ran npm audit fix (non-breaking) and verified no breaking changes
- App still builds and runs correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant