Skip to content

chore(deps): pin patched msal-node and serialize-javascript - #321

Merged
SebTardif merged 1 commit into
mainfrom
fix/npm-audit-msal-and-serialize
Oct 26, 2026
Merged

SebTardif merged 1 commit into
mainfrom
fix/npm-audit-msal-and-serialize

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Summary

Pin @azure/msal-node to 7.1.1 and serialize-javascript to 7.1.4 so npm audit --audit-level=high passes.

Why

Dependabot PR #320 is blocked on the required npm audit check. That Actions bump does not change npm dependencies. The same audit fails on current main:

  • GHSA-xcx6-jx8p-x3h5: @azure/msal-node before 7.1.0, reached through @vscode/vsce and @azure/identity. Identity 4.14.0 still depends on msal-node ^6. npm audit fix --force would downgrade @vscode/vsce, so this override keeps vsce 4 and forces the patched MSAL release.
  • GHSA-m5mm-p8h7-m29v: serialize-javascript before 7.1.3, reached through mocha. The mocha override was still 7.0.5.

@azure/identity 4.13.3 loads against msal-node 7.1.1. It does not pass responseMode, which msal-node 7 removed from interactive login.

Ref #320

Verification

  • npm audit --audit-level=high reports 0 vulnerabilities
  • Required @azure/msal-node exports load, and require("@azure/identity") succeeds on 7.1.1
  • npm run check: 508 unit tests passed, line coverage 93.01%, vsce package succeeded

Checklist

  • All commits in this pull request are signed off with git commit -s
  • I ran npm run check and it passes
  • I updated docs if user-facing behavior changed
  • I am contributing this work under the repository license (MIT)

npm audit --audit-level=high fails on GHSA-xcx6-jx8p-x3h5
(@azure/msal-node before 7.1.0, via @azure/identity) and
GHSA-m5mm-p8h7-m29v (serialize-javascript before 7.1.3, via mocha).
Identity 4.14.0 still declares msal-node ^6, so the override forces
7.1.1. That module still exports the clients identity loads, and
identity does not pass the responseMode option removed in msal-node 7.

This is the audit failure blocking Dependabot PR #320.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@SebTardif
SebTardif marked this pull request as ready for review October 26, 2026 02:01
@SebTardif
SebTardif merged commit b82def7 into main Oct 26, 2026
23 checks passed
@SebTardif
SebTardif deleted the fix/npm-audit-msal-and-serialize branch October 26, 2026 02:01
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