Skip to content

Resolve npm audit vulnerabilities - #732

Open
Aamir Jawaid (heyitsaamir) wants to merge 1 commit into
mainfrom
heyitsaamir-npm-audit-fixes
Open

Resolve npm audit vulnerabilities#732
Aamir Jawaid (heyitsaamir) wants to merge 1 commit into
mainfrom
heyitsaamir-npm-audit-fixes

Conversation

@heyitsaamir

Copy link
Copy Markdown
Collaborator

Summary

This clears the workspace npm audit report while keeping the repo on current dependency lines instead of taking npm audit --force downgrades. The security fix patches the BotBuilder line and constrains vulnerable transitive uuid/esbuild paths that upstream packages have not yet released with audit-safe ranges.

Decisions

  • Avoided audit-force downgrades. npm proposed semver-major downgrades for BotBuilder and Restify to satisfy transitive uuid advisories. Keeping current packages and overriding only the vulnerable transitive packages avoids regressing supported package and example versions.
  • Kept broader outdated upgrades out of scope. npm outdated still reports non-security upgrades, including several majors; this PR limits movement to the install/audit fix path so reviewers can assess security risk separately from larger dependency migrations.

Validation

  • npm audit --audit-level=low
  • npm run check:lockfile-registry
  • npx turbo build --filter=@microsoft/teams.botbuilder --filter=@examples/botbuilder
  • npx turbo test --filter=@microsoft/teams.botbuilder

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 18, 2026 16:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates dependency versions and npm overrides to clear npm audit findings without accepting npm audit --force major-downgrade suggestions, primarily by moving the BotBuilder line forward and constraining vulnerable transitive paths (uuid, esbuild) via overrides.

Changes:

  • Bump BotBuilder peer dependency from 4.23.1 to 4.23.3 in the botbuilder package and example.
  • Add/extend root overrides for uuid and tsup -> esbuild, and refine restify overrides.
  • Regenerate package-lock.json, updating a large set of transitive dependencies accordingly.
Show a summary per file
File Description
packages/botbuilder/package.json Bumps botbuilder peer dependency to 4.23.3.
examples/botbuilder/package.json Bumps example’s botbuilder dependency to 4.23.3.
package.json Adds uuid and tsup -> esbuild overrides; updates restify override set.
package-lock.json Reflects updated BotBuilder line and transitive dependency graph changes.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread package.json
Comment on lines +65 to 69
"tsup": {
"esbuild": "0.28.2"
},
"uuid": "11.1.1",
"rollup": "4.62.3"
"@microsoft/teams.botbuilder": "*",
"@microsoft/teams.cards": "*",
"botbuilder": "4.23.1"
"botbuilder": "4.23.3"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't we want to intentionally pin to 4.23.1? Or am I mis-remembering something?

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.

3 participants