Skip to content

petri/logview: pin react-router-dom to 7.15.0 (CVE fixes) + add min-release-age#3682

Open
benhillis wants to merge 2 commits into
microsoft:mainfrom
benhillis:benhill/bump-react-router-dom-7.15
Open

petri/logview: pin react-router-dom to 7.15.0 (CVE fixes) + add min-release-age#3682
benhillis wants to merge 2 commits into
microsoft:mainfrom
benhillis:benhill/bump-react-router-dom-7.15

Conversation

@benhillis

@benhillis benhillis commented Jun 6, 2026

Copy link
Copy Markdown
Member

Pins react-router-dom in petri/logview to the oldest release that fixes all flagged Component Governance advisories, and adds an .npmrc supply-chain guard.

Dependency fix

Pins react-router-dom to exactly 7.15.0 (lockfile resolves react-router/react-router-dom to 7.15.0). 7.15.0 is the oldest release that fixes all three flagged advisories:

CVE Severity First patched
CVE-2026-42211 High 7.14.2
CVE-2026-42342 High 7.15.0
CVE-2026-40181 Med 7.14.1

Previously the range was ^7.12.0/^7.15.0, which floated the lockfile to 7.17.0 (only a couple days old at the time). We now pin to the minimal fixed version rather than the latest, to avoid pulling in very new, undetected supply-chain attacks.

logview is a client-side SPA (not Framework Mode), so real exposure was low, but this clears the CG alerts.

Supply-chain guard

Adds petri/logview/.npmrc with min-release-age=7, which refuses to install any npm release published within the last 7 days (supported by npm >= 11.10.0). This reduces the window of exposure to undetected supply-chain attacks in the npm ecosystem.

Validation

  • npm install reports 0 vulnerabilities
  • npm run build (vite) succeeds

Resolves CVE-2026-42211, CVE-2026-42342, and CVE-2026-40181 in
react-router/react-router-dom. The lockfile now resolves to 7.17.0.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@benhillis benhillis requested a review from a team as a code owner June 6, 2026 16:27
Copilot AI review requested due to automatic review settings June 6, 2026 16:27

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.

Pull request overview

Updates the petri/logview single-page React app’s routing dependency to pick up upstream security fixes and clear Component Governance alerts.

Changes:

  • Bumped react-router-dom dependency from ^7.12.0 to ^7.15.0.
  • Updated package-lock.json to the resolved versions (react-router-dom/react-router at 7.17.0) consistent with the new semver range.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
petri/logview/package.json Updates the declared react-router-dom version range to ^7.15.0.
petri/logview/package-lock.json Refreshes the lockfile to the new resolved react-router-dom/react-router versions and associated metadata.
Files not reviewed (1)
  • petri/logview/package-lock.json: Language not supported

@jstarks

jstarks commented Jun 6, 2026

Copy link
Copy Markdown
Member

As a general policy, we should not take such new releases (7.17 is currently just 2 days old), especially from the npm ecosystem, to avoid undetected supply chain attacks. We should enforce this via min-release-age=7 in an .npmrc file in the logview root.

Pin react-router-dom to the oldest release (7.15.0) that fixes all
three flagged advisories (CVE-2026-42211, CVE-2026-42342,
CVE-2026-40181) rather than floating to the latest, and add an .npmrc
with min-release-age=7 to refuse npm releases newer than 7 days,
reducing exposure to undetected supply-chain attacks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@benhillis benhillis changed the title petri/logview: bump react-router-dom to ^7.15.0 petri/logview: pin react-router-dom to 7.15.0 (CVE fixes) + add min-release-age Jun 8, 2026
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

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.

3 participants