Skip to content

fix: address npm audit vulnerabilities#546

Merged
heyitsaamir merged 3 commits into
mainfrom
fix/npm-audit-vulnerabilities
Apr 30, 2026
Merged

fix: address npm audit vulnerabilities#546
heyitsaamir merged 3 commits into
mainfrom
fix/npm-audit-vulnerabilities

Conversation

@heyitsaamir

@heyitsaamir heyitsaamir commented Apr 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • added overrides for follow-redirects (>=1.16.0) and path-to-regexp (^8.4.0, scoped to router) to fix auth header leak and ReDoS vulns
  • bumped axios to ^1.15.2 in common/apps/dev
  • drops vuln count from 26 → 14. remaining 14 are all upstream botbuilder/azure/restify transitive deps we can't control

Test plan

  • npm run build — all 34 tasks pass
  • npm run test — all 15 test suites pass
  • npm run lint — all 33 tasks pass
  • npm audit — confirms 14 remaining (all botbuilder/uuid/elliptic)
  • examples/echo — basic app works (exercises express 5 + axios + follow-redirects)
  • examples/a2a — express 4 not broken by scoped path-to-regexp override
  • examples/http-adapters — express 5 + restify still work
  • examples/botbuilder — botbuilder still works with unchanged transitive deps

override follow-redirects (>=1.16.0) and path-to-regexp (^8.4.0 scoped to router) to fix auth header leak and ReDoS. bump axios to ^1.15.2 in common/apps/dev. remaining 14 are upstream botbuilder/azure deps we can't control.

Co-Authored-By: Claude <[email protected]>
Copilot AI review requested due to automatic review settings April 29, 2026 21:04

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 root-level npm overrides to reduce npm audit vulnerability count across the workspace, focusing on known issues in follow-redirects (auth header leak) and path-to-regexp (ReDoS), plus aligning axios to a patched version.

Changes:

  • Bump axios to ^1.15.2 in packages/apps, packages/common, and packages/dev.
  • Add root overrides for follow-redirects and scoped path-to-regexp under router to mitigate reported vulnerabilities.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
packages/dev/package.json Bumps axios dependency to a patched version.
packages/common/package.json Bumps axios dependency to a patched version.
packages/apps/package.json Bumps axios dependency to a patched version.
package.json Adds npm overrides for vulnerable transitive dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json Outdated
^1.16.0 instead of >=1.16.0 to avoid pulling a future 2.x breaking change

Co-Authored-By: Claude <[email protected]>
corinagum
corinagum previously approved these changes Apr 29, 2026
@heyitsaamir
heyitsaamir merged commit d113014 into main Apr 30, 2026
7 checks passed
@heyitsaamir
heyitsaamir deleted the fix/npm-audit-vulnerabilities branch April 30, 2026 17:30
heyitsaamir added a commit that referenced this pull request Apr 30, 2026
## Summary
- the previous audit fix PR (#546) merged overrides for
`follow-redirects` and `path-to-regexp`, but the lockfile merge resolved
from main without them applied
- clean `rm -rf node_modules package-lock.json && npm install` to get
overrides into the lockfile
- drops audit from 26 vulns (3 high, 1 critical) → 14 (0 high, 0
critical). remaining 14 are all upstream botbuilder/azure uuid+elliptic

## Test plan
- [x] `npm audit` — 14 remaining, 0 high, 0 critical
- [x] `npm run build` — all tasks pass
- [x] `npm run test` — all test suites pass
- [x] verify examples still build: `examples/echo`,
`examples/botbuilder`, `examples/a2a`

Co-authored-by: Claude <[email protected]>
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