Skip to content

chore(deps): update dependencies securely - #805

Merged
RaananW merged 3 commits into
masterfrom
raananw-secure-dependency-update
Dec 1, 2026
Merged

RaananW merged 3 commits into
masterfrom
raananw-secure-dependency-update

Conversation

@RaananW

@RaananW RaananW commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: c16b32cf50cc1ce62ef70c51dfe2fd2ac7b9ea07

Dimension Assessment Rationale
Change confidence 9/10 ↑ Clean installation, renderer identity assertions, block rendering, site build, both lint/typecheck suites, formatting, and zero-finding audit pass on the final tree.
↑ All 53 new registry versions checked: 52 eligible and one documented critical security exception.
↓ Full demo build/render/smoke suites passed at 06ac155, not rerun after the renderer/cross-spawn fix; current-head CI is not yet verified.
Diagnosis confidence 10/10 ↑ Published Eleventy manifest requests nunjucks ^3.2.4; prior lock resolved a different package, @11ty/nunjucks 3.3.0.
Evidence fit 10/10 ↑ Clean install now resolves upstream nunjucks 3.2.4 and its matching registry tarball, directly addressing the review finding.

Summary

  • Update 13 direct dependencies: Eleventy 3.1.8; six Babylon.js packages 9.37.2; ESLint 10.15.0; globals 17.14.0; Playwright 1.65.1; Prettier 3.10.1; typescript-eslint 8.73.0; Vite 8.3.8.
  • Preserve caret ranges and limit dependency changes to package.json and package-lock.json. No overrides, audit suppressions, or application changes.
  • Retain TypeScript 6.0.3: the eligible typescript-eslint 8.73.0 requires TypeScript >=4.8.4 <6.1.0. TypeScript 7.0.2 is age-eligible but not compatible with that peer dependency; its native compiler migration is not forced into this update.
  • Resolve Vite's compatible Rolldown dependency to 1.2.18 through npm. Rolldown 1.2.19 introduces optional WASM dependencies on @emnapi/core and @emnapi/runtime 2.0.0-beta.2; no new prerelease versions are included.
  • Address human review: resolve upstream nunjucks@3.2.4, matching Eleventy's published manifest, instead of retaining the old fork alias. Verify package identity after a clean install and build the site.
  • Patch newly disclosed critical cross-spawn vulnerability with the minimum fixed version, 7.1.0.

Security audit

Command: npm audit --json, including production and development dependencies and every severity.

Severity Original baseline Final
Info 0 0
Low 0 0
Moderate 9 0
High 0 0
Critical 0 0
Total 9 0

All severities are zero. ESLint/typescript-eslint updates remove vulnerable minimatch 10.2.6 instances and resolve GHSA-g3hv-75wg-m249, including its affected parent packages.

On December 1, the audit additionally reported one critical finding in cross-spawn 7.0.6: GHSA-ghv9-86vm-4v8m. Updating to 7.1.0 restores zero findings.

Seven-day release-age policy

  • Immutable original run time: 2026-11-30T16:05:34.090Z.
  • Cutoff: 2026-11-23T16:05:34.090Z, exactly seven full 24-hour periods earlier. The December 1 follow-up retains this cutoff.
  • Selected the newest stable age-eligible direct releases subject to the compatibility constraints above.
  • Compared the corrected final lockfile against the original lockfile and checked all 53 newly introduced exact npm-registry package versions, including transitive and optional platform packages, with npm-version-age.mjs check --days 7 --now 2026-11-30T16:05:34.090Z.
  • 52 versions meet the cutoff. The only younger version is cross-spawn 7.1.0, required to fix a critical advisory and documented below. No new prereleases were selected.

Under-seven-day security exceptions

Package From To Published (UTC) Age at original run Severity Advisory Reason
cross-spawn 7.0.6 7.1.0 2026-11-28T18:48:48.179Z 1.8 days Critical GHSA-ghv9-86vm-4v8m Minimum fixed version for Windows batch-file command injection; selected within ESLint's existing ^7.0.6 range. No override or new direct dependency. Required to restore a zero-finding audit.

Deferred recent releases

Latest routine releases intentionally not selected because they are newer than the original cutoff:

Package Selected Deferred Published (UTC) Age at original run (days)
sharp 0.35.5 0.35.6 2026-11-28T19:02:33.435Z 1.8
@babylonjs/core 9.37.2 9.38.0 2026-11-26T13:13:30.505Z 4.1
@babylonjs/gui 9.37.2 9.38.0 2026-11-26T12:59:29.675Z 4.1
@babylonjs/inspector 9.37.2 9.38.0 2026-11-26T13:00:09.914Z 4.1
@babylonjs/loaders 9.37.2 9.38.0 2026-11-26T13:00:29.723Z 4.1
@babylonjs/materials 9.37.2 9.38.0 2026-11-26T13:00:33.457Z 4.1
@babylonjs/procedural-textures 9.37.2 9.38.0 2026-11-26T13:01:02.643Z 4.1
eslint 10.15.0 10.16.0 2026-11-27T16:23:21.440Z 2.9
typescript-eslint 8.73.0 8.74.0 2026-11-23T17:06:58.945Z 6.9
vite 8.3.8 8.4.0 2026-11-26T10:59:36.131Z 4.2

Deferred quarantined security fixes

None.

Validation

Final review-fix tree, macOS, Node 24.19.0, npm 11.17.0:

  • npm ci --no-audit --no-fund - clean corrected-lock installation passes.
  • Assertions verify installed nunjucks name/version, upstream tarball URL, Eleventy's installed/published dependency agreement, and block rendering.
  • npm run site:build - complete site build passes with the corrected renderer (22 pages).
  • npm run demos:lint and npm run demos:pure:lint - pass with patched cross-spawn.
  • npm run demos:format, npm run demos:typecheck, and npm run demos:pure:typecheck - pass.
  • npm ls --depth=0 - valid graph.
  • npm audit --json - zero findings at every severity.
  • Exact-version age check - 53 checked; 52 eligible, one documented critical exception.
  • git diff --check - clean.

Earlier dependency revision 06ac15553288be822bdffaba807e2a0bd4bf5aa2 passed these additional commands. They were not rerun after the renderer/cross-spawn correction:

  • npm run build - website, compiled demos, pure demos, and source pages.
  • npm run demos:ci and npm run demos:pure:ci - lint, format, typecheck, and render checks for all 85 enabled demos in each flavor.
  • npm run demos:smoke and npm run demos:pure:smoke - all 85 enabled demos in each flavor.

Each manifest contains 86 demos; the existing disabled demo remains excluded by the repository's checks. No thresholds or exclusions were changed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 30, 2026 16:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain with the dependency and lockfile updates.

No open issues 🎉

What changed in this PR

Updates the Babylon.js website’s build, demo, and development dependencies to address reported security vulnerabilities without changing application code.

Changes:

  • Updates 13 direct dependencies, including six Babylon.js packages, Eleventy, and development tools, while preserving caret ranges.
  • Refreshes the lockfile, replacing vulnerable minimatch versions and resolving Rolldown to 1.2.18.
  • Retains TypeScript 6.0.3 for compatibility with typescript-eslint and avoids newly resolved prerelease packages.
File Description
package.json Updates direct dependency ranges for website builds and demo tooling.
package-lock.json Records updated dependency resolutions, integrity hashes, and platform packages.

Review effort: Balanced

@RaananW
RaananW requested a review from deltakosh November 30, 2026 18:40

@Popov72 Popov72 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.

Skeptical senior code review

Verdict: Request substantial changes

  • Value and necessity: The refresh is worthwhile: it removes the locked minimatch 10.2.6 copies cited in the advisory and updates the site and demo toolchains without requiring a TypeScript major-version migration.
  • Design: Keeping the refresh in the npm manifest and lockfile is appropriate. This is not CI-only: Eleventy builds the published site, and the Babylon.js packages are bundled into shipped demos. The renderer package identity must be consistent across the dependency declaration and resolution.
  • Implementation and tests: The direct manifest ranges match their locked versions. TypeScript 6.0.3 fits the retained parser peer range; the native TypeScript and Babylon Lite peers are optional, and the Rolldown Linux binding is present at the expected version. Existing CI covers clean installation, the site build, lint, formatting, type checking, and both demo render suites. Those suites do not exercise the lazy Inspector toggle or independently assert the identity of the installed template renderer.
  • Hot paths: No website-owned per-frame or per-draw code changes. Eleventy, Vite, linting, and Playwright changes affect build or validation paths. The Babylon.js update replaces code used on the demo render path, but the repository diff contains no upstream implementation from which to establish added hot-path overhead.
  • Findings: 1 inline (1 blocking, 0 nonblocking).
  • Open questions: None.
  • Review limitations: Read-only source review. No installs, builds, audits, or registry checks were run independently. The PR description's local assessment names an earlier revision, so it does not establish exact-head validation. In the authenticated snapshot, Azure demo validation and CodeQL JavaScript/TypeScript were still in progress, and the Azure parent check was queued.

Comment thread package-lock.json Resolved
Resolve upstream nunjucks from Eleventy's published manifest. Apply cross-spawn 7.1.0, the minimum fix for critical GHSA-ghv9-86vm-4v8m.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@RaananW
RaananW requested a review from Popov72 December 1, 2026 19:40

@Popov72 Popov72 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.

Incremental review

  • Start: c82affd10b2484fa88577b363e7c237fddb20389
  • End: c16b32cf50cc1ce62ef70c51dfe2fd2ac7b9ea07

The lockfile now resolves Eleventy's Nunjucks dependency to the upstream package. No new findings in the follow-up diff.

@RaananW
RaananW merged commit 14d9228 into master Dec 1, 2026
6 checks passed
@RaananW
RaananW deleted the raananw-secure-dependency-update branch December 1, 2026 23:42
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