Skip to content

logview_new: updated the react router to 7.12.0 or above (#2628)#3345

Open
gurasinghMS wants to merge 2 commits intomicrosoft:release/1.7.2511from
gurasinghMS:cherrypick/release/1.7.2511/pr-2628
Open

logview_new: updated the react router to 7.12.0 or above (#2628)#3345
gurasinghMS wants to merge 2 commits intomicrosoft:release/1.7.2511from
gurasinghMS:cherrypick/release/1.7.2511/pr-2628

Conversation

@gurasinghMS
Copy link
Copy Markdown
Contributor

@gurasinghMS gurasinghMS commented Apr 21, 2026

Cherry Picking changes from #2628 and ran npm audit fix. THIS IS NOT A CLEAN CHERRY PICK. However, this code is completely unused / dead in the target branch. These changes are being made to appease Component Governance.

There a vulnerability found in router version < 7.12.0 which allows XSS when using SSR (Server Side Rendering) with the react router. Notably this does not impact apps using declarative mode for the router (i.e. <BrowserRouter>). Our app doesn't use SSR and only uses declarative mode for the router, hence should not be vulnerable. However, still updating router version to the patched version of 7.12.0 or above for cleanliness and to appease dependabot.

Dependabot vulnerabilities that will be addressed with this PR:

(cherry picked from commit de4be3b)

)

There a vulnerability found in router version < 7.12.0 which allows XSS
when using SSR (Server Side Rendering) with the react router. Notably
this does not impact apps using declarative mode for the router (i.e.
`<BrowserRouter>`). Our app doesn't use SSR and only uses declarative
mode for the router, hence should not be vulnerable. However, still
updating router version to the patched version of 7.12.0 or above for
cleanliness and to appease dependabot.

Dependabot vulnerabilities that will be addressed with this PR:
* https://github.com/microsoft/openvmm/security/dependabot/8
* https://github.com/microsoft/openvmm/security/dependabot/9
* https://github.com/microsoft/openvmm/security/dependabot/10

(cherry picked from commit de4be3b)
Copilot AI review requested due to automatic review settings April 21, 2026 18:51
@gurasinghMS gurasinghMS requested a review from a team as a code owner April 21, 2026 18:51
@github-actions github-actions Bot added the release_1.7.2511 Targets the release/1.7.2511 branch. label Apr 21, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the (currently unused) petri/logview_new front-end dependencies to address Dependabot-reported React Router vulnerabilities by moving to react-router-dom >= 7.12.0.

Changes:

  • Bump react-router-dom from ^7.9.3 to ^7.12.0 (and corresponding lockfile entries).
  • Bump react / react-dom dependency ranges from ^19.1.1 to ^19.2.1.

Reviewed changes

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

File Description
petri/logview_new/package.json Updates React + React Router dependency ranges.
petri/logview_new/package-lock.json Updates resolved react-router / react-router-dom packages and the top-level dependency ranges.
Files not reviewed (1)
  • petri/logview_new/package-lock.json: Language not supported

Comment thread petri/logview_new/package.json
Comment thread petri/logview_new/package-lock.json
Comment thread petri/logview_new/package-lock.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_1.7.2511 Targets the release/1.7.2511 branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants