Skip to content

Update npm lockfiles to latest versions - #29827

Merged
kunal-vaishnavi merged 1 commit into
microsoft:mainfrom
mustjab:fix/npm-security-lockfiles
Jul 23, 2026
Merged

kunal-vaishnavi merged 1 commit into
microsoft:mainfrom
mustjab:fix/npm-security-lockfiles

Conversation

@mustjab

Copy link
Copy Markdown
Contributor

Description

Updates vulnerable transitive npm dependencies in ONNX Runtime lockfiles.

Updates

  • brace-expansion 1.x -> 1.1.16
  • brace-expansion 2.x -> 2.1.2
  • brace-expansion 5.x -> 5.0.7
  • js-yaml 3.x -> 3.15.0
  • js-yaml 4.x -> 4.3.0

Modified lockfiles:

  • js/package-lock.json
  • js/react_native/package-lock.json
  • js/react_native/e2e/package-lock.json
  • js/web/package-lock.json
  • onnxruntime/test/wasm/package-lock.json

No package manifests or runtime source files are changed. The js-yaml update also refreshes its generated transitive argparse metadata.

Validation

  • Regenerated each lockfile with targeted npm update --package-lock-only --ignore-scripts using registry.npmjs.org.
  • Re-ran npm install --package-lock-only --ignore-scripts in all five affected directories; lockfiles remained stable.
  • Ran npm audit --package-lock-only in all five directories; neither brace-expansion nor js-yaml remains in advisory output.
  • Verified all updated package records use SHA-512 integrity metadata.

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.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (5)
  • js/package-lock.json: Generated file
  • js/react_native/e2e/package-lock.json: Generated file
  • js/react_native/package-lock.json: Generated file
  • js/web/package-lock.json: Generated file
  • onnxruntime/test/wasm/package-lock.json: Generated file

@kunal-vaishnavi
kunal-vaishnavi enabled auto-merge (squash) July 23, 2026 00:42
@kunal-vaishnavi
kunal-vaishnavi merged commit cff0335 into microsoft:main Jul 23, 2026
87 of 88 checks passed
Mustapha Jaber (mustjab) added a commit that referenced this pull request Jul 28, 2026
…29926)

## Description

Updates vulnerable dev/test npm dependencies in the `nextjs-default`
export
e2e fixture lockfile. Follow-up to #29827, which covered the other five
lockfiles but not this one.

## Updates

- `next` `15.5.18` -> `15.5.22`
- `postcss` `8.5.14` -> `8.5.24`
- `nanoid` `3.3.12` -> `3.3.16`

Modified lockfile:

- `js/web/test/e2e/exports/testcases/nextjs-default/package-lock.json`

`next` 15.5.18 predates the `15.5.21` security release co-published with
`16.2.11`, so the fixture still resolved to a version affected by the
CVE-2026-64641..64649 advisory batch. `postcss` 8.5.14 is likewise
inside the
affected range (`<= 8.5.17`) for CVE-2026-45623.

Note the fixture intentionally tracks the `15.x` line (`next: ^15.0.0`
in
package.json, per #28547), so `15.5.22` — not `16.2.11` — is the correct
target.

No package manifests or runtime source files are changed. The resolved
dependency set is unchanged (identical package keys before/after); the
diff is
purely `version`/`resolved`/`integrity`.

## Validation

- Regenerated with `npm audit fix --package-lock-only` against
`registry.npmjs.org`; verified zero `resolved` URLs point anywhere else.
- `npm audit --package-lock-only` no longer reports `next` or `postcss`
  advisories; the diff is a balanced 46 insertions / 46 deletions.
- Confirmed package key sets are identical pre/post, so no dependency
was
  added or dropped.
- Preserved `libc` metadata that npm >= 11.6 drops when rewriting
lockfiles
(the packages still declare it), keeping musl/glibc optional-dep
selection
  intact for the `@next/swc-linux-*` binaries.
This was referenced Aug 12, 2026
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.

4 participants