Skip to content

SEC: URGENT - Pin crypto-js to safe version#114

Open
Jocelyn-paystack wants to merge 1 commit intomasterfrom
sec/pin-crypto-js-safe-version
Open

SEC: URGENT - Pin crypto-js to safe version#114
Jocelyn-paystack wants to merge 1 commit intomasterfrom
sec/pin-crypto-js-safe-version

Conversation

@Jocelyn-paystack
Copy link
Copy Markdown

Summary

  • Malware detected in crypto-js@4.2.1 — this is a known compromised version
  • This repo uses a caret range (^x.y.z) which allows npm/yarn to resolve to any semver-compatible version, including 4.2.1
  • This PR removes the ^ prefix to pin crypto-js at the currently specified safe version, preventing future installs from pulling the compromised version

Test plan

  • Verify package.json shows pinned version (no ^ prefix)
  • Run npm install / yarn install to confirm no resolution changes
  • Run existing test suite to verify no regressions

🤖 Generated with Claude Code

Pin crypto-js dependency to prevent npm/yarn from resolving to
compromised version 4.2.1. Removes caret (^) range prefix
to lock the dependency at the currently specified safe version.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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.

1 participant