Skip to content

Fix Next.js publish fixture security dependencies - #21455

Closed
David Pine (IEvangelist) wants to merge 1 commit into
mainfrom
ievangelist-core-security-remediation
Closed

David Pine (IEvangelist) wants to merge 1 commit into
mainfrom
ievangelist-core-security-remediation

Conversation

@IEvangelist

Copy link
Copy Markdown
Member

Description

Remove vulnerable dependency versions from the executed Next.js CLI publish fixture. Update Next.js from 16.3.8 to 16.4.1 and its explicit sharp override from 0.35.4 to 0.35.5, regenerating the npm lockfile. No production Aspire dependencies or workflows change.

Addresses Dependabot records 2740, 2739, 2738, and 2560. The fixture runs in JavaScript publish E2E tests; the checked-in app does not demonstrate the advisory-specific exploit triggers.

Overlap reconciliation: #21404, #21383, #21354, and #21342 already update this fixture to Next.js 16.4.1, but their current heads all retain both the sharp override and lockfile at 0.35.4, despite Next.js requiring ^0.35.5. None contains this equivalent fix. This PR isolates the complete fixture remediation; those broad update branches were not modified and may need reconciliation after this lands.

Validation

Commands ran in tests/Aspire.Cli.EndToEnd.Tests/Fixtures/JsPublish/nextjs unless noted:

  • npm ci --no-fund --no-audit — passed on Windows.
  • npm run build — passed on Windows.
  • npm audit --package-lock-only --json — baseline reported critical Next.js and high sharp package aggregates; patched result passed with zero vulnerabilities.
  • npm ls next sharp — passed: Next.js 16.4.1 and overridden sharp 0.35.5.
  • In an isolated node:24-bookworm-slim glibc Linux container, npm ci --no-fund --no-audit && npm run build && node /checks/nextjs-smoke.cjs — passed. The session-owned smoke script asserted patched dependency versions, exercised sharp SVG-to-PNG processing, and started the production standalone server to verify HTTP 200 and the expected heading. Script is validation-only and not part of this PR.
  • git diff origin/main...HEAD --check — passed.

Full Aspire CLI E2E orchestration was not run; a source-matched CLI archive was not built. The existing test-folder convention routes these fixture changes to Aspire.Cli.EndToEnd.Tests; no test-selection map change is needed. GitHub CI remains to run.

Fixes # (issue)

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

Update Next.js to 16.4.1 and the sharp override to 0.35.5, regenerating the fixture lockfile with npm.

Co-authored-by: Copilot App <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21455

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21455"

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

1 / 100 PR test projects · 0 PR jobs, from 2 changed files.

Selected PR test projects (1 / 100)

Aspire.Cli.EndToEnd.Tests

Selected PR jobs (0)

none


How these were chosen — grouped by what changed

🧪 tests/Aspire.Cli.EndToEnd.Tests/Fixtures/JsPublish/nextjs/package-lock.json (changed test)
→ 1 directly: Aspire.Cli.EndToEnd.Tests

🧪 tests/Aspire.Cli.EndToEnd.Tests/Fixtures/JsPublish/nextjs/package.json (changed test)
→ 1 directly: Aspire.Cli.EndToEnd.Tests

Job reasons

none


Selection computed for commit e2456ee.

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.

🟢 Approval recommended

No active review issues block the fixture-only dependency updates.

No open issues 🎉

1 file not reviewed
  • tests/Aspire.Cli.EndToEnd.Tests/Fixtures/JsPublish/nextjs/package-lock.json: Generated file
What changed in this PR

Updates security-sensitive dependencies in the Next.js fixture used by Aspire CLI JavaScript publish end-to-end tests. The changes are limited to the fixture; production Aspire dependencies and workflows are unchanged.

Changes:

  • Updates Next.js from 16.3.8 to 16.4.1 and the sharp override from 0.35.4 to 0.35.5.
  • Regenerates the lockfile with matching Next.js, sharp, and native dependency versions.
File Description
tests/​Aspire.Cli.EndToEnd.Tests/​Fixtures/​JsPublish/​nextjs/​package.json Updates Next.js and the explicit sharp override.
tests/​Aspire.Cli.EndToEnd.Tests/​Fixtures/​JsPublish/​nextjs/​package-lock.json Locks updated dependencies and refreshes package URLs, integrity hashes, and platform metadata.

Review effort: Balanced

@IEvangelist
David Pine (IEvangelist) enabled auto-merge (squash) October 30, 2026 13:35
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@radical

Ankit Jain (radical) commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

[automated] Next.js 16.4.5 is now available.

@adamint

Copy link
Copy Markdown
Member

Superseded by the consolidated dependency update in #22643, which includes this change.

auto-merge was automatically disabled November 25, 2026 03:37

Pull request was closed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants