Skip to content

🔧 deps: fix Dependabot security alerts (#60, #64, #65, #66, #67)#317

Merged
Chisanan232 merged 2 commits into
masterfrom
fix/dependabot-security-alerts
Jul 21, 2026
Merged

🔧 deps: fix Dependabot security alerts (#60, #64, #65, #66, #67)#317
Chisanan232 merged 2 commits into
masterfrom
fix/dependabot-security-alerts

Conversation

@Chisanan232

Copy link
Copy Markdown
Contributor

Summary

Fixes 5 open Dependabot security alerts across two separate pnpm workspaces in this repo (root SDK and website/) by forcing pnpm's transitive dependency resolution to patched versions via pnpm.overrides. No direct dependency versions in either package.json were changed.

Root pnpm-lock.yaml

  • Bump @napi-rs/cli from 3.6.2 to 3.7.0 #60body-parser (2.x) DoS: an invalid limit value silently disables request size enforcement. Vulnerable >= 2.0.0, < 2.3.0, patched 2.3.0. Fix: added "body-parser@2": "^2.3.0" to root pnpm.overrides.

website/pnpm-lock.yaml

Why

All 5 packages are transitive dependencies pulled in by other tooling (body-parser via express-family packages; webpack-dev-server/shell-quote via the Docusaurus/webpack build toolchain in website/). Using pnpm.overrides forces the resolver to the patched versions without adding these as direct dependencies.

How to verify

  • Root: pnpm install regenerates pnpm-lock.yaml with body-parser@2.3.0 resolved (was 2.2.2). pnpm run build, pnpm run typecheck, and pnpm run test (631 passed, 2 pre-existing skips) all pass.
  • Website: pnpm install --no-frozen-lockfile --ignore-workspace (the documented install method for website/, matching .github/workflows/publish-docs.yml) regenerates website/pnpm-lock.yaml with body-parser@1.20.6, webpack-dev-server@5.2.6, and shell-quote@1.10.0 resolved. pnpm run build (Docusaurus static build) and pnpm run typecheck both pass.
  • Grepped both new lockfiles to confirm no vulnerable versions of any of the 5 packages remain.

Closes #60, #64, #65, #66, #67

Alert #60: body-parser 2.x prior to 2.3.0 silently disables request
size enforcement when given an invalid `limit` option, allowing a DoS.
Add a pnpm.overrides entry (body-parser@2 -> ^2.3.0) to force the
transitive resolution to the patched version without touching any
direct dependency declarations.
…ides to patched versions (GHSA fixes)

- Alert #67: body-parser 1.x < 1.20.6 DoS via invalid `limit` value
  silently disabling size enforcement -> pinned to ^1.20.6
- Alert #66: webpack-dev-server <= 5.2.5 CSRF via internal developer
  endpoints -> pinned to ^5.2.6
- Alert #65: webpack-dev-server <= 5.2.5 DoS via malformed Host/Origin
  header -> pinned to ^5.2.6
- Alert #64: shell-quote <= 1.8.4 quadratic-complexity DoS in parse()
  -> pinned to ^1.9.0 (tightened from the existing >=1.8.4 override)

All three are transitive build-tooling dependencies pulled in via the
Docusaurus toolchain; fixed via pnpm.overrides, no direct dependency
versions changed.
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Chisanan232
Chisanan232 merged commit 63edd77 into master Jul 21, 2026
27 checks passed
@Chisanan232
Chisanan232 deleted the fix/dependabot-security-alerts branch July 21, 2026 08:58
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