Skip to content

fix(deps): upgrade pbkdf2 to 3.1.3 to fix predictable number generation CVEs#604

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1777470463-fix-pbkdf2-cve
Open

fix(deps): upgrade pbkdf2 to 3.1.3 to fix predictable number generation CVEs#604
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1777470463-fix-pbkdf2-cve

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented Apr 29, 2026

Summary

Upgrades the pbkdf2 dependency from pinned 3.1.2 to ^3.1.3 to remediate two critical CVEs:

  • CVE-2026-1863 — Predictable Number Generation (CVSS 9.1)
  • CVE-2026-1864 — Predictable Number Generation (CVSS 9.1)

Changes

  • package.json: Updated direct dependency from "pbkdf2": "3.1.2" to "pbkdf2": "^3.1.3"
  • package.json: Added "**/pbkdf2": "^3.1.3" to resolutions to ensure all transitive paths are also upgraded
  • yarn.lock: Updated resolved pbkdf2 version from 3.1.2 to 3.1.3

Impact

  • The app's core encryption code (app/core/Encryptor/pbkdf2.ts) uses react-native-quick-crypto for native PBKDF2 derivation and does not import the pbkdf2 npm package directly
  • The pbkdf2 npm package is consumed transitively by other crypto dependencies in the dependency tree
  • No application code changes are required

Review & Testing Checklist for Human

  • Verify yarn.lock resolves all pbkdf2 references to 3.1.3+ (run yarn why pbkdf2)
  • Run the app and confirm wallet creation / import flow works (key derivation pipeline)
  • Confirm no regressions in send/sign transaction flows that use the crypto stack

Notes

  • yarn install cannot be run cleanly in this repo due to a pre-existing 404 on the react-native-tcp GitHub tarball dependency (unrelated to this change). The yarn.lock was updated manually to resolve pbkdf2 to 3.1.3.
  • The pbkdf2@3.0.8 entry in yarn.lock is a separate, older resolution used by legacy ethereumjs-* packages and was not modified.

Link to Devin session: https://app.devin.ai/sessions/b1020724d13d4c2fa1a2a771a56ca4f4
Requested by: @abhay-codeium


Devin Review

Status Commit
⚪ Not started

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)
Open in Devin Review

…on CVEs

Upgrade pbkdf2 from 3.1.2 to ^3.1.3 to address:
- CVE-2026-1863 (Predictable Number Generation, CVSS 9.1)
- CVE-2026-1864 (Predictable Number Generation, CVSS 9.1)

Changes:
- Updated direct dependency from pinned 3.1.2 to ^3.1.3
- Added **/pbkdf2 resolution to ensure all transitive paths are upgraded
- Updated yarn.lock to resolve pbkdf2 to 3.1.3

Co-Authored-By: Abhay Aggarwal <abhay.aggarwal@codeium.com>
@devin-ai-integration
Copy link
Copy Markdown
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. Add '(aside)' to your comment to have me ignore it.
  • 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

Copy link
Copy Markdown
Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant