Skip to content

chore: update package versions to resolve Dependabot alerts - #330

Closed
NirajC3-Microsoft wants to merge 10 commits into
devfrom
psl-dependabot-fix
Closed

chore: update package versions to resolve Dependabot alerts#330
NirajC3-Microsoft wants to merge 10 commits into
devfrom
psl-dependabot-fix

Conversation

@NirajC3-Microsoft

Copy link
Copy Markdown
Contributor

Purpose

This pull request updates a range of backend and frontend dependencies to improve compatibility, security, and stability across the project. The main changes include upgrading Python and Node.js package versions, tightening Python version requirements, and adding or updating several dependencies in both backend and frontend configuration files.

Backend dependency updates and requirements:

  • Increased the minimum required version of ansible-core to >=2.18.18 in both infra/vscode_web/endpoint-requirements.txt and infra/vscode_web/requirements.txt for better compatibility and support. [1] [2]
  • Restricted Python version compatibility to >=3.12,<3.14 in src/backend-api/pyproject.toml to avoid issues with future Python releases.
  • Updated several backend dependencies in src/backend-api/pyproject.toml, including:
    • pydantic-settings to 2.14.2
    • starlette to 1.3.1
    • pyjwt to 2.13.0
    • Added mcp==1.28.1
  • Updated mcp to 1.28.1 and added joserfc==1.6.8 in src/processor/pyproject.toml for improved JWT handling. [1] [2]

Frontend dependency updates:

  • Upgraded key frontend dependencies in src/frontend/package.json and package-lock.json:
    • axios to ^1.18.1 [1] [2] [3]
    • js-yaml to ^4.3.0 [1] [2] [3]
    • Added or updated: dompurify to 3.4.12, brace-expansion to 5.0.7, and @babel/core to 7.29.6 [1] [2] [3] [4]
  • Updated several Babel-related dependencies to 7.29.6 or 7.29.7 for improved build tooling and compatibility. [1] [2] [3] [4] [5]

These updates ensure the project remains up-to-date with the latest features, security patches, and compatibility improvements across both backend and frontend components.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

@NirajC3-Microsoft

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="Microsoft"

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL313720593% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
602 0 💤 0 ❌ 0 🔥 26.342s ⏱️

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

Coverage

Processor Coverage Report •
FileStmtsMissCoverMissing
TOTAL600984086% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
834 0 💤 0 ❌ 0 🔥 20.439s ⏱️

This comment was marked as resolved.

Copilot AI review requested due to automatic review settings July 24, 2026 03:12

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

Copilot reviewed 5 out of 8 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • src/frontend/package-lock.json: Generated file
Comments suppressed due to low confidence (12)

src/frontend/package-lock.json:151

  • This lockfile entry is pinned to an Azure Artifacts "ms-feed-*.pkgs.visualstudio.com" tarball URL (and uses a sha1 integrity). If contributors/CI don’t have access to that feed, installs will fail and the build won’t be reproducible from the public npm registry. Consider regenerating package-lock.json with the intended public registry (or add a repo .npmrc documenting/configuring the required registry) so the lockfile doesn’t depend on an implicit private feed.
    src/frontend/package-lock.json:182
  • This lockfile entry is pinned to an Azure Artifacts "ms-feed-*.pkgs.visualstudio.com" tarball URL (and uses a sha1 integrity). If contributors/CI don’t have access to that feed, installs will fail and the build won’t be reproducible from the public npm registry. Consider regenerating package-lock.json with the intended public registry (or add a repo .npmrc documenting/configuring the required registry) so the lockfile doesn’t depend on an implicit private feed.
    src/frontend/package-lock.json:258
  • This lockfile entry is pinned to an Azure Artifacts "ms-feed-*.pkgs.visualstudio.com" tarball URL (and uses a sha1 integrity). If contributors/CI don’t have access to that feed, installs will fail and the build won’t be reproducible from the public npm registry. Consider regenerating package-lock.json with the intended public registry (or add a repo .npmrc documenting/configuring the required registry) so the lockfile doesn’t depend on an implicit private feed.
    src/frontend/package-lock.json:268
  • This lockfile entry is pinned to an Azure Artifacts "ms-feed-*.pkgs.visualstudio.com" tarball URL (and uses a sha1 integrity). If contributors/CI don’t have access to that feed, installs will fail and the build won’t be reproducible from the public npm registry. Consider regenerating package-lock.json with the intended public registry (or add a repo .npmrc documenting/configuring the required registry) so the lockfile doesn’t depend on an implicit private feed.
    src/frontend/package-lock.json:302
  • This lockfile entry is pinned to an Azure Artifacts "ms-feed-*.pkgs.visualstudio.com" tarball URL (and uses a sha1 integrity). If contributors/CI don’t have access to that feed, installs will fail and the build won’t be reproducible from the public npm registry. Consider regenerating package-lock.json with the intended public registry (or add a repo .npmrc documenting/configuring the required registry) so the lockfile doesn’t depend on an implicit private feed.
    src/frontend/package-lock.json:364
  • This lockfile entry is pinned to an Azure Artifacts "ms-feed-*.pkgs.visualstudio.com" tarball URL (and uses a sha1 integrity). If contributors/CI don’t have access to that feed, installs will fail and the build won’t be reproducible from the public npm registry. Consider regenerating package-lock.json with the intended public registry (or add a repo .npmrc documenting/configuring the required registry) so the lockfile doesn’t depend on an implicit private feed.
    src/frontend/package-lock.json:4571
  • This lockfile entry is pinned to an Azure Artifacts "ms-feed-*.pkgs.visualstudio.com" tarball URL (and uses a sha1 integrity). If contributors/CI don’t have access to that feed, installs will fail and the build won’t be reproducible from the public npm registry. Consider regenerating package-lock.json with the intended public registry (or add a repo .npmrc documenting/configuring the required registry) so the lockfile doesn’t depend on an implicit private feed.
    src/frontend/package-lock.json:4615
  • This lockfile entry is pinned to an Azure Artifacts "ms-feed-*.pkgs.visualstudio.com" tarball URL (and uses a sha1 integrity). If contributors/CI don’t have access to that feed, installs will fail and the build won’t be reproducible from the public npm registry. Consider regenerating package-lock.json with the intended public registry (or add a repo .npmrc documenting/configuring the required registry) so the lockfile doesn’t depend on an implicit private feed.
    src/frontend/package-lock.json:5662
  • This lockfile entry is pinned to an Azure Artifacts "ms-feed-*.pkgs.visualstudio.com" tarball URL (and uses a sha1 integrity). If contributors/CI don’t have access to that feed, installs will fail and the build won’t be reproducible from the public npm registry. Consider regenerating package-lock.json with the intended public registry (or add a repo .npmrc documenting/configuring the required registry) so the lockfile doesn’t depend on an implicit private feed.
    src/frontend/package-lock.json:7545
  • This lockfile entry is pinned to an Azure Artifacts "ms-feed-*.pkgs.visualstudio.com" tarball URL (and uses a sha1 integrity). If contributors/CI don’t have access to that feed, installs will fail and the build won’t be reproducible from the public npm registry. Consider regenerating package-lock.json with the intended public registry (or add a repo .npmrc documenting/configuring the required registry) so the lockfile doesn’t depend on an implicit private feed.
    infra/vscode_web/requirements.txt:3
  • This changes the constraint from a compatible-release pin (previously limited to a minor series) to an unbounded lower bound, which can allow future minor/major ansible-core releases to be pulled in automatically and potentially break provisioning unexpectedly. Consider keeping a compatible-release style constraint while addressing the security advisory (e.g., ~=2.18.18).
ansible-core>=2.18.18

infra/vscode_web/endpoint-requirements.txt:3

  • This changes the constraint from a compatible-release pin (previously limited to a minor series) to an unbounded lower bound, which can allow future minor/major ansible-core releases to be pulled in automatically and potentially break provisioning unexpectedly. Consider keeping a compatible-release style constraint while addressing the security advisory (e.g., ~=2.18.18).
ansible-core>=2.18.18

Copilot AI review requested due to automatic review settings July 24, 2026 03:17

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

Copilot reviewed 5 out of 8 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • src/frontend/package-lock.json: Generated file
Comments suppressed due to low confidence (7)

infra/vscode_web/requirements.txt:3

  • ansible-core is now specified with a minimum version only (>=2.18.18), while the rest of this requirements file uses pinned versions. Leaving it unbounded can introduce breaking changes on future installs and reduces reproducibility.
ansible-core>=2.18.18

infra/vscode_web/endpoint-requirements.txt:3

  • ansible-core is now specified with a minimum version only (>=2.18.18), while the rest of this requirements file uses pinned versions. Leaving it unbounded can introduce breaking changes on future installs and reduces reproducibility.
ansible-core>=2.18.18

src/frontend/package-lock.json:151

  • This lockfile entry is resolved from an internal Visual Studio/Azure Artifacts feed (ms-feed-*.pkgs.visualstudio.com) and uses sha1 integrity, while most of the lockfile uses registry.npmjs.org + sha512. Committing feed-specific resolved URLs can break npm ci for contributors/CI that don't have that feed configured and reduces integrity strength.
    src/frontend/package-lock.json:4571
  • This entry is resolved from an internal Visual Studio/Azure Artifacts feed (ms-feed-*.pkgs.visualstudio.com) and uses sha1 integrity. That’s inconsistent with the rest of the lockfile (mostly registry.npmjs.org + sha512) and can make installs fail in environments without that feed configured.
    src/frontend/package-lock.json:4615
  • This entry is resolved from an internal Visual Studio/Azure Artifacts feed (ms-feed-*.pkgs.visualstudio.com) and uses sha1 integrity. If contributors/CI don’t have that feed configured, npm ci can fail even though the version exists on the public npm registry.
    src/frontend/package-lock.json:5663
  • This entry is resolved from an internal Visual Studio/Azure Artifacts feed (ms-feed-*.pkgs.visualstudio.com) and uses sha1 integrity, unlike most entries in this lockfile. This reduces reproducibility and can break installs outside of Microsoft-internal environments.
    src/frontend/package-lock.json:7545
  • This entry is resolved from an internal Visual Studio/Azure Artifacts feed (ms-feed-*.pkgs.visualstudio.com) and uses sha1 integrity. Since the rest of the lockfile primarily uses registry.npmjs.org + sha512, this looks like the lockfile was generated with a custom registry and may not be installable everywhere.

Copilot AI review requested due to automatic review settings July 24, 2026 03:22

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

Copilot reviewed 5 out of 8 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • src/frontend/package-lock.json: Generated file
Comments suppressed due to low confidence (5)

infra/vscode_web/requirements.txt:3

  • Using an open-ended lower bound (">=") for ansible-core makes installs non-reproducible and can unintentionally pull in breaking changes. This file previously used the compatible-release operator (~=); consider keeping that pattern by pinning to the 2.18 patch line.
ansible-core>=2.18.18

infra/vscode_web/endpoint-requirements.txt:3

  • Using an open-ended lower bound (">=") for ansible-core makes installs non-reproducible and can unintentionally pull in breaking changes. This file previously used the compatible-release operator (~=); consider keeping that pattern by pinning to the 2.18 patch line.
ansible-core>=2.18.18

src/frontend/package-lock.json:151

  • These updated entries switch to an Azure Artifacts feed URL and use a sha1 integrity hash. This reduces portability (developers/CI without access to that feed can’t reproduce installs) and sha1 integrity is weaker than the typical sha512 recorded by npm.
    src/frontend/package-lock.json:4571
  • This axios lock entry uses an Azure Artifacts feed URL and a sha1 integrity hash, which can break reproducible installs outside that environment and weakens integrity verification compared to the usual sha512.
    src/frontend/package-lock.json:7546
  • This js-yaml lock entry uses an Azure Artifacts feed URL and a sha1 integrity hash, which can hinder reproducible installs and weakens integrity verification compared to sha512.

Copilot AI review requested due to automatic review settings July 24, 2026 03:27

This comment was marked as resolved.

Copilot AI review requested due to automatic review settings July 24, 2026 03:36

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

Copilot reviewed 5 out of 8 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • src/frontend/package-lock.json: Generated file
Comments suppressed due to low confidence (4)

src/processor/pyproject.toml:30

  • mem0ai and qdrant-client are specified with >= while all other runtime deps in this list are pinned with ==. Mixing specifier styles makes the project dependencies less deterministic (a future uv lock could silently move these to newer versions), and it’s inconsistent with the rest of this file’s pinning strategy.

Consider pinning these to the versions currently resolved in the lockfile for reproducible builds.

    "mcp==1.28.1",
    "mem0ai>=2.0.1",
    "openai==2.33.0",
    "psutil==7.2.2",
    "pytz==2026.1.post1",

src/frontend/package-lock.json:151

  • This lockfile now contains resolved URLs pointing at ms-feed-*.pkgs.visualstudio.com and uses sha1-... integrity hashes for some packages (example: @babel/core). Since most of the lockfile still points at registry.npmjs.org with sha512 integrity, this introduces an inconsistent dependency source and weaker integrity verification, and may break installs in CI/dev environments that don’t have access to that feed.

Regenerate package-lock.json using the intended registry configuration (or commit an .npmrc that consistently configures the registry for all environments) so resolved/integrity are stable and portable.
infra/vscode_web/requirements.txt:3

  • The constraint changed from a compatible-release pin (~=) to a minimum-only (>=). Without an upper bound, this can pull in newer minor/major ansible-core versions and increase the chance of unexpected breakages.

If the intent is “2.18.x starting from 2.18.18”, keep the previous compatible-release style (or add an explicit upper bound).

ansible-core>=2.18.18

infra/vscode_web/endpoint-requirements.txt:3

  • The constraint changed from a compatible-release pin (~=) to a minimum-only (>=). Without an upper bound, this can pull in newer minor/major ansible-core versions and increase the chance of unexpected breakages.

If the intent is “2.18.x starting from 2.18.18”, keep the previous compatible-release style (or add an explicit upper bound).

ansible-core>=2.18.18

Copilot AI review requested due to automatic review settings July 24, 2026 03:40

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

Copilot reviewed 5 out of 8 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • src/frontend/package-lock.json: Generated file
Comments suppressed due to low confidence (10)

infra/vscode_web/requirements.txt:3

  • These requirements files pin other dependencies exactly, but ansible-core is now specified as a bare lower bound (>=2.18.18). This removes the previous upper bound and can allow unexpected major/minor upgrades, reducing reproducibility and potentially breaking the VS Code web infra unexpectedly. Consider using a compatible-release specifier (~=2.18.18) (or an exact pin) to keep upgrades controlled while still addressing the Dependabot alert.
azure-ai-projects==2.1.0
azure-identity==1.20.0
ansible-core>=2.18.18

infra/vscode_web/endpoint-requirements.txt:3

  • These requirements files pin other dependencies exactly, but ansible-core is now specified as a bare lower bound (>=2.18.18). This removes the previous upper bound and can allow unexpected major/minor upgrades, reducing reproducibility and potentially breaking the VS Code web infra unexpectedly. Consider using a compatible-release specifier (~=2.18.18) (or an exact pin) to keep upgrades controlled while still addressing the Dependabot alert.
azure-ai-projects==1.0.0b12
azure-identity==1.20.0
ansible-core>=2.18.18

src/processor/pyproject.toml:31

  • mem0ai and qdrant-client are the only project dependencies here that use open-ended ">=" ranges while the rest of the dependency list is pinned with "==". This can lead to non-reproducible installs (different versions across environments) and makes it harder to correlate Dependabot/security alerts to a specific resolved version. Consider pinning these to the versions already resolved in uv.lock.
    "mem0ai>=2.0.1",
    "openai==2.33.0",
    "psutil==7.2.2",
    "pytz==2026.1.post1",
    "qdrant-client>=1.17.1",

src/frontend/package-lock.json:151

  • Several new/updated entries in package-lock.json now resolve to "https://ms-feed-*.pkgs.visualstudio.com/..." and use sha1 integrity hashes. This makes installs dependent on an Azure Artifacts feed (which may be inaccessible in CI or for external contributors) and weakens integrity verification compared to the sha512 hashes used elsewhere in this lockfile. Regenerate the lockfile with npm configured to use the public registry (e.g., https://registry.npmjs.org) so resolved URLs and integrity values are portable and use strong hashes.
    src/frontend/package-lock.json:257
  • Several new/updated entries in package-lock.json now resolve to "https://ms-feed-*.pkgs.visualstudio.com/..." and use sha1 integrity hashes. This makes installs dependent on an Azure Artifacts feed (which may be inaccessible in CI or for external contributors) and weakens integrity verification compared to the sha512 hashes used elsewhere in this lockfile. Regenerate the lockfile with npm configured to use the public registry (e.g., https://registry.npmjs.org) so resolved URLs and integrity values are portable and use strong hashes.
    src/frontend/package-lock.json:301
  • Several new/updated entries in package-lock.json now resolve to "https://ms-feed-*.pkgs.visualstudio.com/..." and use sha1 integrity hashes. This makes installs dependent on an Azure Artifacts feed (which may be inaccessible in CI or for external contributors) and weakens integrity verification compared to the sha512 hashes used elsewhere in this lockfile. Regenerate the lockfile with npm configured to use the public registry (e.g., https://registry.npmjs.org) so resolved URLs and integrity values are portable and use strong hashes.
    src/frontend/package-lock.json:4570
  • Several new/updated entries in package-lock.json now resolve to "https://ms-feed-*.pkgs.visualstudio.com/..." and use sha1 integrity hashes. This makes installs dependent on an Azure Artifacts feed (which may be inaccessible in CI or for external contributors) and weakens integrity verification compared to the sha512 hashes used elsewhere in this lockfile. Regenerate the lockfile with npm configured to use the public registry (e.g., https://registry.npmjs.org) so resolved URLs and integrity values are portable and use strong hashes.
    src/frontend/package-lock.json:4614
  • Several new/updated entries in package-lock.json now resolve to "https://ms-feed-*.pkgs.visualstudio.com/..." and use sha1 integrity hashes. This makes installs dependent on an Azure Artifacts feed (which may be inaccessible in CI or for external contributors) and weakens integrity verification compared to the sha512 hashes used elsewhere in this lockfile. Regenerate the lockfile with npm configured to use the public registry (e.g., https://registry.npmjs.org) so resolved URLs and integrity values are portable and use strong hashes.
    src/frontend/package-lock.json:5662
  • Several new/updated entries in package-lock.json now resolve to "https://ms-feed-*.pkgs.visualstudio.com/..." and use sha1 integrity hashes. This makes installs dependent on an Azure Artifacts feed (which may be inaccessible in CI or for external contributors) and weakens integrity verification compared to the sha512 hashes used elsewhere in this lockfile. Regenerate the lockfile with npm configured to use the public registry (e.g., https://registry.npmjs.org) so resolved URLs and integrity values are portable and use strong hashes.
    src/frontend/package-lock.json:7545
  • Several new/updated entries in package-lock.json now resolve to "https://ms-feed-*.pkgs.visualstudio.com/..." and use sha1 integrity hashes. This makes installs dependent on an Azure Artifacts feed (which may be inaccessible in CI or for external contributors) and weakens integrity verification compared to the sha512 hashes used elsewhere in this lockfile. Regenerate the lockfile with npm configured to use the public registry (e.g., https://registry.npmjs.org) so resolved URLs and integrity values are portable and use strong hashes.

Copilot AI review requested due to automatic review settings July 24, 2026 04:00

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

Copilot reviewed 5 out of 8 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • src/frontend/package-lock.json: Generated file

@NirajC3-Microsoft

Copy link
Copy Markdown
Contributor Author

Not required wrong PR

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.

2 participants