Skip to content

fix(web/deps): resolve 8 Dependabot alerts (undici, js-yaml, @babel/core) - #225

Merged
Quick104 merged 1 commit into
mainfrom
fix/dependabot-npm-transitive-deps
Jun 26, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/dependabot-npm-transitive-deps

Conversation

@Quick104

@Quick104 Quick104 commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Problem

GitHub Dependabot reports 8 open vulnerabilities in web/pnpm-lock.yaml (2 high, 3 moderate, 3 low). All are dev-only transitive dependencies of the web frontend toolchain:

Alert Package Severity Issue Pulled in by
#44 undici high TLS cert validation bypass via dropped requestTls in SOCKS5 ProxyAgent jsdom
#45 undici high Cross-origin request routing via SOCKS5 proxy pool reuse jsdom
#47 undici moderate HTTP header injection via Set-Cookie percent-decoding jsdom
#43 undici moderate Cross-user info disclosure via shared cache whitespace bypass jsdom
#46 undici low HTTP response queue poisoning via keep-alive socket reuse jsdom
#49 undici low Set-Cookie SameSite attribute downgrade jsdom
#39 js-yaml moderate Quadratic-complexity DoS in merge key handling @eslint/eslintrc
#38 @babel/core low Arbitrary file read via sourceMappingURL comment @vitejs/plugin-react

Approach

Pin patched versions through the existing pnpm.overrides block in web/package.json — the same mechanism already used in this repo for brace-expansion, flatted, picomatch, postcss, and vite. Each override targets the vulnerable range and forces the first patched release:

  • undici 7.24.7 → 7.28.0
  • js-yaml 4.1.1 → 4.2.0
  • @babel/core 7.29.0 → 7.29.6

All bumps are minor/patch within the same major. No vulnerable versions remain in the lockfile.

Verification

  • pnpm install --frozen-lockfile — consistent
  • pnpm run lint — 0 errors (pre-existing warnings only)
  • pnpm run build — succeeds
  • pnpm run test — the only failures (ServerStorageStep / ResizeObserver is not defined) reproduce identically on main with base deps and are unrelated to these bumps

Risks / follow-up

Low. Dev/test/build-time tooling only; no production runtime or shipped client code is affected. The pre-existing ResizeObserver test failure and the Profiles.tsx formatting warning on main are out of scope for this PR.

AI-use disclosure

Authored with Claude Code (Opus 4.8): identified the alerts via the Dependabot API, applied the overrides, and ran the verification above.

Summary by CodeRabbit

  • Chores
    • Updated dependency version constraints for a few transitive packages to keep the app on supported, compatible releases.

Resolves 8 open Dependabot alerts in web/pnpm-lock.yaml (all dev-only
transitive dependencies) by pinning patched versions through the existing
pnpm.overrides mechanism:

- undici  7.24.7 -> 7.28.0  (via jsdom; alerts #43-#49, incl. 2 high:
  TLS cert validation bypass & cross-origin routing via SOCKS5 ProxyAgent)
- js-yaml 4.1.1  -> 4.2.0   (via @eslint/eslintrc; alert #39, quadratic DoS)
- @babel/core 7.29.0 -> 7.29.6 (via @vitejs/plugin-react; alert #38,
  arbitrary file read via sourceMappingURL)

No vulnerable versions remain in the lockfile. Web build and lint pass;
the only failing tests (ServerStorageStep ResizeObserver) are pre-existing
on main and unrelated to these bumps.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 247b19ba-0cfb-4b07-940d-aaf44595dfd2

📥 Commits

Reviewing files that changed from the base of the PR and between 9881cf5 and 46b06ef.

⛔ Files ignored due to path filters (1)
  • web/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • web/package.json

📝 Walkthrough

Walkthrough

The package manifest adds three new pnpm override entries for transitive dependencies: @babel/core, js-yaml, and undici.

Changes

Dependency override updates

Layer / File(s) Summary
Expanded pnpm overrides
web/package.json
The pnpm.overrides map adds upper-bound constraints for @babel/core, js-yaml, and undici.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the dependency remediation for undici, js-yaml, and @babel/core.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/dependabot-npm-transitive-deps

Comment @coderabbitai help to get the list of available commands.

@Quick104
Quick104 merged commit cc31d83 into main Jun 26, 2026
1 check passed
@Quick104
Quick104 deleted the fix/dependabot-npm-transitive-deps branch June 26, 2026 16:37
Quick104 added a commit to RXWatcher/silo-server that referenced this pull request Jul 10, 2026
…lo-Server#225)

Resolves 8 open Dependabot alerts in web/pnpm-lock.yaml (all dev-only
transitive dependencies) by pinning patched versions through the existing
pnpm.overrides mechanism:

- undici  7.24.7 -> 7.28.0  (via jsdom; alerts Silo-Server#43-Silo-Server#49, incl. 2 high:
  TLS cert validation bypass & cross-origin routing via SOCKS5 ProxyAgent)
- js-yaml 4.1.1  -> 4.2.0   (via @eslint/eslintrc; alert Silo-Server#39, quadratic DoS)
- @babel/core 7.29.0 -> 7.29.6 (via @vitejs/plugin-react; alert Silo-Server#38,
  arbitrary file read via sourceMappingURL)

No vulnerable versions remain in the lockfile. Web build and lint pass;
the only failing tests (ServerStorageStep ResizeObserver) are pre-existing
on main and unrelated to these bumps.

Co-authored-by: Claude Opus 4.8 <[email protected]>
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.

1 participant