Skip to content

Fix 11 S360 OSS vulnerabilities (axios, protobufjs, langsmith, @grpc/grpc-js, hono, ws) - #285

Closed
EvanderDS (EvanderDS) wants to merge 4 commits into
microsoft:mainfrom
EvanderDS:s360-fix/vuln-management-axios-protobufjs-langsmith
Closed

Fix 11 S360 OSS vulnerabilities (axios, protobufjs, langsmith, @grpc/grpc-js, hono, ws)#285
EvanderDS (EvanderDS) wants to merge 4 commits into
microsoft:mainfrom
EvanderDS:s360-fix/vuln-management-axios-protobufjs-langsmith

Conversation

@EvanderDS

@EvanderDS EvanderDS (EvanderDS) commented Sep 7, 2026

Copy link
Copy Markdown

Summary

Fixes 11 known npm dependency vulnerabilities via pnpm version overrides in package.json + pnpm-workspace.yaml.

CVEs fixed

Follows the same override pattern as the prior fast-uri CVE fix (#259).

Local verification (latest commit)

  • build: all 11 packages, clean
  • lint: clean
  • test: 63 suites / 1269 tests passed, 0 failed

Reviewers

Requested review from dbezic, rbrighenti, DheerajPannala.

This PR description was drafted with AI assistance. Please review carefully before merging.

Evander Sequeira added 2 commits September 2, 2026 18:18
…via pnpm overrides

Pins transitive axios (1.15.2 -> 1.16.0), protobufjs (7.5.5 -> 7.5.6),
and langsmith (0.5.25 -> 0.8.0) to their patched releases via pnpm
overrides in package.json and pnpm-workspace.yaml, following the same
pattern used for the prior fast-uri CVE fix (microsoft#259).
…2026-48779 (ws) via pnpm overrides

Pins transitive @grpc/grpc-js (1.14.3 -> 1.14.4), hono (4.12.15 -> 4.12.25+),
and ws (8.20.0 -> 8.21.0) to their patched releases via pnpm overrides in
package.json and pnpm-workspace.yaml, following the same pattern as the
prior axios/protobufjs/langsmith fix.
@EvanderDS
EvanderDS (EvanderDS) requested a review from a team as a code owner September 7, 2026 15:36
Copilot AI lite review requested due to automatic review settings September 7, 2026 15:36
@EvanderDS

Copy link
Copy Markdown
Author

dbezic (@dbezic) Rick Brighenti (@rbrighenti) Krishnadheeraj (@DheerajPannala) could one of you review/approve? (submitted from a fork so I can't formally request review — flagging directly instead.)

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.

🟡 Changes recommended

The override floors for hono and ws appear lower than the patched versions stated in the PR description, which could allow future resolutions to downgrade below the intended fixed releases.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the repo’s pnpm version override configuration to remediate multiple S360 OSS vulnerability action items by enforcing minimum safe versions for several transitive dependencies across the monorepo.

Changes:

  • Updated the workspace catalog entry for hono to a newer compatible range.
  • Added new pnpm override floors for axios, protobufjs, langsmith, @grpc/grpc-js, and ws (in both pnpm-workspace.yaml and root package.json).
File summaries
File Description
pnpm-workspace.yaml Updates catalog.hono and adds security-focused overrides entries for vulnerable transitive dependencies.
package.json Adds/updates root pnpm.overrides to enforce the same security remediation floors.
Review details

Suppressed comments (2)

pnpm-workspace.yaml:133

  • The PR description claims ws is remediated by bumping to 8.21.3, but the override/comment here only floors ws at ^8.21.0. If 8.21.3 is the first patched release, the override and its explanatory comment should be updated to 8.21.3 to prevent future lockfile resolutions from sliding back below the patched version.
  # Vulnerabilities). Forces the transitive ws@8.20.0 up to the patched
  # 8.21.0, which fixes CVE-2026-48779 (memory exhaustion DoS from tiny
  # fragments and data chunks). Remove once the transitive parents resolve a
  # patched ws by default.
  "ws": "^8.21.0"

package.json:71

  • The PR description claims ws is remediated by bumping to 8.21.3, but the override floor is only ^8.21.0. If 8.21.3 is the first patched release, raise the override floor to avoid future resolutions dropping back below the patched version.
      "ws": "^8.21.0",
  • Files reviewed: 2/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json Outdated
Comment thread pnpm-workspace.yaml Outdated
…CVE range

The prior floor (^4.12.25) only fixed CVE-2026-54290 but still permitted resolving
to versions vulnerable to later hono CVEs fixed in 4.12.27 and 4.12.34. Raising
the floor to ^4.13.5 (the version already verified) closes that gap so a future
install cannot resolve back into any known-vulnerable hono range.

Local verification: pnpm run build (11 pkgs, clean), pnpm run lint (clean),
pnpm run test (63 suites / 1269 tests passed, 0 failed).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 7, 2026 15:50

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.

🔵 Needs a closer look

The ws override version in the code (^8.21.0) does not match the PR description’s remediation target (8.21.3), so the documented security floor is not actually enforced.

Review details

Suppressed comments (2)

Previously missed (2) — in code that hasn't changed since the last review.

package.json:71

  • The PR description indicates ws should be overridden to 8.21.3, but this override currently pins ws to ^8.21.0. Align this with the documented remediation version to avoid drifting below the intended security floor.
    pnpm-workspace.yaml:133
  • The PR description says ws is being remediated by bumping to 8.21.3, but the workspace override is set to ^8.21.0 and the comment also states 8.21.0. This is a mismatch that could leave the intended security floor lower than documented; align the override (and comment) to 8.21.3.
  • Files reviewed: 2/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@EvanderDS

Copy link
Copy Markdown
Author

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

@EvanderDS
EvanderDS (EvanderDS) force-pushed the s360-fix/vuln-management-axios-protobufjs-langsmith branch from 0f3f212 to 216111a Compare September 7, 2026 16:00
Copilot AI review requested due to automatic review settings September 7, 2026 16:00
@EvanderDS

Copy link
Copy Markdown
Author

Fixed - raised the hono floor to ^4.13.5 in both package.json and pnpm-workspace.yaml so it can no longer resolve below the fully-patched version. Verified: build/lint/1269 tests all pass.

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.

🟡 Changes recommended

The ws override floor is ^8.21.0 while the PR description states the fix boundary is 8.21.3, which risks still allowing vulnerable 8.21.0–8.21.2 resolutions.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 2/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread package.json
"langsmith": "^0.8.0",
"protobufjs": "^7.5.6",
"uuid": "^10.0.0",
"ws": "^8.21.0",
Comment thread pnpm-workspace.yaml
Comment on lines +124 to +128
# ws - security remediation . Forces the transitive ws@8.20.0 up to the patched
# 8.21.0, which fixes CVE-2026-48779 (memory exhaustion DoS from tiny
# fragments and data chunks). Remove once the transitive parents resolve a
# patched ws by default.
"ws": "^8.21.0"
@EvanderDS

Copy link
Copy Markdown
Author

Note on the failing Node.js SDK (18)/(20) checks: this is not caused by this PR. The integration suite requires live Azure OpenAI secrets, which GitHub withholds from fork-submitted PR workflows by design. Confirmed the same two checks also fail on other existing fork PRs (#265, #260) with no relation to this change. The unit test suite (excludes /integration/) passes; this PR was also verified locally with the full suite (63 suites / 1269 tests, 0 failed).

@EvanderDS

Copy link
Copy Markdown
Author

For anyone picking this up: the only way the integration-test check can genuinely pass is for these commits to live on a branch of this repo (not a fork) - pull_request workflows from forks never get secrets.AZURE_OPENAI_API_KEY etc, with no approval override available for this workflow config. Steps for someone with write access:

\
git remote add fork https://github.com/EvanderDS/Agent365-nodejs.git
git fetch fork s360-fix/vuln-management-axios-protobufjs-langsmith
git push origin fork/s360-fix/vuln-management-axios-protobufjs-langsmith:s360-fix/vuln-management-axios-protobufjs-langsmith
\
Then open a fresh PR from that origin branch into main (or repoint this one) - it will run with real secrets and can actually pass the integration suite. Happy to close this PR once that's done.

Copilot AI added a commit that referenced this pull request Sep 8, 2026
Co-authored-by: dbezic <50911161+dbezic@users.noreply.github.com>

@dbezic dbezic (dbezic) 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.

  • abandon this PR, there is #288

dbezic (dbezic) added a commit that referenced this pull request Sep 8, 2026
* Reproduce dependency security updates from PR #285

Co-authored-by: dbezic <50911161+dbezic@users.noreply.github.com>

* Update ws dependency version to 8.21.3

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Update ws version for security remediation

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Update ws package version to 8.21.3

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dbezic <50911161+dbezic@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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