fix: Dependent bot vulnerabilities - #1134
Closed
Akhileswara-Microsoft wants to merge 1 commit into
Closed
Conversation
Akhileswara-Microsoft
requested review from
Dhruvkumar-Microsoft
and
a lite review from Copilot
and removed request for
Avijit-Microsoft,
Francia Riesco (Fr4nc3),
Prajwal-Microsoft,
Roopan-Microsoft,
Vinay Sharma (Vinay-Microsoft),
Anish Arora (aniaroramsft),
dgp10801,
nchandhi and
Todd Herman (toherman-msft)
August 7, 2026 10:25
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates Python and JavaScript dependency pins/overrides to remediate reported vulnerability alerts across the backend, MCP server, GitHub CI requirements, and the frontend app.
Changes:
- Bumped Python deps to address security alerts (notably
python-multipart==0.0.30,cryptography==50.0.0,aiohttp==3.14.3) across relevantpyproject.tomlfiles and.github/requirements.txt. - Updated frontend override pins for
js-yamlandpostcss, and attempted to override/upgradereact-routerto8.3.0. - Updated
package-lock.jsonto reflect the new JS resolutions (includingcookie-esand router-related dependency tree changes).
Reviewed changes
Copilot reviewed 5 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/mcp_server/pyproject.toml | Updates python-multipart and cryptography pins for the MCP server runtime deps. |
| src/backend/pyproject.toml | Updates backend pins for python-multipart, cryptography, and aiohttp. |
| src/App/pyproject.toml | Updates python-multipart and adds cryptography pin for the App’s Python deps. |
| src/App/package.json | Updates overrides (js-yaml/postcss) and adds a react-router override to 8.3.0. |
| src/App/package-lock.json | Updates resolved packages to match the override changes (js-yaml/postcss/router tree). |
| .github/requirements.txt | Updates CI/test requirements pin for python-multipart. |
Files not reviewed (1)
- src/App/package-lock.json: Generated file
Suppressed comments (1)
src/App/package-lock.json:7523
- react-router@8.3.0 in the lockfile declares engines node>=22.22.0 and peerDependencies react/react-dom>=19.2.7, but src/App/package.json pins react/react-dom to ^18.3.1. This mismatch may break installs in CI or produce runtime issues; either upgrade React/Node to satisfy these constraints or keep router on a compatible major.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
74
to
+83
| "overrides": { | ||
| "minimatch": "3.1.5", | ||
| "vite": "7.3.5", | ||
| "mdast-util-to-hast": "13.2.1", | ||
| "picomatch": "4.0.4", | ||
| "js-yaml": "4.3.0", | ||
| "js-yaml": "5.2.2", | ||
| "brace-expansion": "1.1.16", | ||
| "ws": "8.21.0" | ||
| "ws": "8.21.0", | ||
| "postcss": "8.5.18", | ||
| "react-router": "8.3.0" |
Comment on lines
+7495
to
7502
| "node_modules/react-router-dom": { | ||
| "version": "7.18.1", | ||
| "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/react-router/-/react-router-7.18.1.tgz", | ||
| "integrity": "sha1-YSWdFZS5XBrOKZ7kxXRTVw8MIvE=", | ||
| "resolved": "https://ms-feed-2.pkgs.visualstudio.com/1es-public/_packaging/npm-public/npm/registry/react-router-dom/-/react-router-dom-7.18.1.tgz", | ||
| "integrity": "sha1-DRsTjikTkwWa1IHD4Q42Y4WpeKQ=", | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "cookie": "^1.0.1", | ||
| "set-cookie-parser": "^2.6.0" | ||
| "react-router": "7.18.1" | ||
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request primarily updates several dependencies across both Python and JavaScript projects to address security, compatibility, and feature improvements. The most significant changes include upgrading
python-multipartandcryptographyin all Python requirements, updating several key JavaScript packages (includingjs-yaml,postcss, andnanoid), and restructuring howreact-routerand related dependencies are managed.Python dependency upgrades:
python-multipartfrom0.0.20to0.0.30in all relevantpyproject.tomland requirements files to ensure consistency and benefit from bug fixes and security updates.cryptographyto50.0.0andaiohttpto3.14.3where applicable, improving security and compatibility.JavaScript dependency upgrades:
js-yamlfrom4.3.0to5.2.2and updated its binary entry point tobin/js-yaml.mjs, ensuring better support for ES modules.postcssfrom8.5.14to8.5.18andnanoidfrom3.3.11to3.3.16for improved performance and bug fixes.React Router restructuring:
react-routerandreact-router-domare included: now usingreact-router-domas the main package with its own version ofreact-router(upgraded to8.3.0), and replaced thecookieandset-cookie-parserdependencies withcookie-es. This aligns with the latest best practices and dependency requirements for React 19+.These changes collectively improve security, compatibility, and maintainability across the codebase.
Does this introduce a breaking change?
Other Information
This pull request primarily updates several dependencies across the project to address security, compatibility, and feature improvements. The most significant changes involve upgrading Python and JavaScript packages, including
python-multipart,cryptography, and core frontend libraries such asreact-router,js-yaml,postcss, and related dependencies.Dependency Upgrades (Python):
python-multipartfrom0.0.20to0.0.30in all relevantpyproject.tomlfiles and.github/requirements.txtfor improved security and compatibility.cryptographyto50.0.0andaiohttpto3.14.3to address security and bug fixes insrc/backend/pyproject.tomlandsrc/mcp_server/pyproject.toml.Dependency Upgrades (JavaScript/Frontend):
js-yamlfrom4.3.0to5.2.2and updated its binary entry point in bothpackage.jsonandpackage-lock.json.postcssfrom8.5.14to8.5.18andnanoidfrom3.3.11to3.3.16for improved performance and bug fixes.react-routerwithreact-router-domv7.18.1 and addedreact-routerv8.3.0 as a dependency, updating related dependencies such ascookie-esand removing unused dependencies likeset-cookie-parser.These updates ensure the project uses the latest secure and compatible versions of its core dependencies.