Skip to content

Update vulnerable npm packages and gate SpecVersion test installs - #10456

Merged
glen-84 merged 1 commit into
mainfrom
gai/clear-website-npm-advisories
Sep 30, 2026
Merged

glen-84 merged 1 commit into
mainfrom
gai/clear-website-npm-advisories

Conversation

@glen-84

@glen-84 glen-84 commented Sep 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Moves brace-expansion in the website lockfile from 1.1.18 and 5.0.9 to 1.1.21 and 5.0.12, clearing GHSA-6j4f-fj2g-mc7p, GHSA-qhr7-859c-m2p7, and GHSA-q2hr-2g5m-vwhr. It is reached through minimatch in ESLint and the Storybook build.
  • Moves the undici that node-gyp pulls in from 6.28.0 to 6.28.1, clearing GHSA-rfgv-xxqx-mfg5, GHSA-3wwx-pv8p-q78v, and GHSA-r53p-7pc4-xj5r. Both moves stay inside the parents' declared ranges, so no manifest changes.
  • Adds an .npmrc with min-release-age=7 to the Types.SpecVersion.Tests node root, the only npm root without a minimum release age. The yarn roots already set npmMinimalAgeGate.

Test plan

  • yarn npm audit --all --recursive in website/ reports no advisories, in both the full and the --environment production view.
  • yarn tsc --noEmit, yarn lint, yarn build, and the Storybook build pass in website/.
  • In the Types.SpecVersion.Tests node root, npm config list shows the gate applied, and npm install --dry-run still resolves both pinned graphql aliases.

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 review overview

🔵 Needs a closer look

Correct min-release-age from 7 minutes to 10080 minutes.

Review effort: Lite
Findings: None

What changed in this PR

Updates vulnerable npm dependencies and adds an npm release-age gate for SpecVersion test installs.

Changes:

  • Upgrades brace-expansion and undici in website/yarn.lock.
  • Adds .npmrc for npm release-age protection.
File Summary
website/​yarn.lock Updates vulnerable dependency resolutions and checksums.
src/​HotChocolate/​Core/​test/​Types.SpecVersion.Tests/​node/​.npmrc Adds the release-age gate; min-release-age should be 10080 for seven days.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants