Skip to content

fix: resolve 7 of 8 high-severity dependency vulnerabilities#9

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1770685940-fix-high-severity-deps
Open

fix: resolve 7 of 8 high-severity dependency vulnerabilities#9
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1770685940-fix-high-severity-deps

Conversation

@devin-ai-integration
Copy link

fix: resolve 7 of 8 high-severity dependency vulnerabilities

Summary

Addresses 7 of 8 high-severity Dependabot alerts by bumping direct dependencies and adding pnpm.overrides for transitive ones.

Direct dependency bumps (server/package.json):

  • express ^4.18.2 → ^4.22.0 (fixes qs DoS)
  • axios ^1.12.0 → ^1.13.5 (fixes prototype pollution DoS)

pnpm overrides (root package.json) for transitive deps:

  • jws >=4.0.1 — HMAC signature verification bypass
  • fast-xml-parser >=5.3.4 — RangeError DoS
  • preact >=10.28.2 — JSON VNode injection
  • h3 >=1.15.5 — request smuggling (TE.TE)
  • qs >=6.14.1 — arrayLimit DoS via memory exhaustion

Remaining (unfixable): bigint-buffer — no patched version exists (via @coinbase/x402 > @coinbase/cdp-sdk > @solana/spl-token). Fixing this would require a major version bump of @coinbase/x402 (0.6 → 2.x) which has breaking API changes.

Result: High-severity alerts reduced from 8 → 1.

Review & Testing Checklist for Human

  • fast-xml-parser override forces a major version jump for @langchain/anthropic (4.5.3 → 5.3.5). Verify that the agent's Anthropic/LangChain integration still works correctly (XML parsing behavior may have changed between v4 and v5)
  • express 4.21.2 → 4.22.1: Smoke test the server endpoints (/health, any payment routes) to confirm no regressions in request handling or query string parsing (qs 6.13 → 6.14)
  • axios 1.12.0 → 1.13.5: Verify outbound HTTP calls from the server (Crossmint API, Coinbase API) still work as expected
  • Confirm the pnpm.overrides approach is acceptable for this repo vs. waiting for upstream packages to update their own deps

Recommended test plan: Run the agent and server locally, exercise the main payment/purchase flow end-to-end, and confirm no runtime errors from the overridden packages.

Notes

- Bump express ^4.18.2 → ^4.22.0 (fixes qs DoS via express's own dep)
- Bump axios ^1.12.0 → ^1.13.5 (fixes axios DoS via __proto__)
- Add pnpm overrides for transitive deps:
  - jws >=4.0.1 (HMAC signature verification)
  - fast-xml-parser >=5.3.4 (RangeError DoS)
  - preact >=10.28.2 (JSON VNode injection)
  - h3 >=1.15.5 (request smuggling)
  - qs >=6.14.1 (arrayLimit DoS)

Remaining unfixable: bigint-buffer (no patch exists, via @coinbase/x402)

Co-Authored-By: Penelope <penelope@paella.dev>
@devin-ai-integration
Copy link
Author

Original prompt from Penelope
can you TAL at all of these and see which you can resolve with quick easy PRs?
https://github.com/Crossmint/worldstore-agent/security/dependabot?q=is%3Aopen+severity%3Ahigh

@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

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