Skip to content

Pin axios to exact version#21

Merged
Gldywn merged 2 commits intomainfrom
security/pin-axios-version
Mar 31, 2026
Merged

Pin axios to exact version#21
Gldywn merged 2 commits intomainfrom
security/pin-axios-version

Conversation

@Gldywn
Copy link
Copy Markdown
Owner

@Gldywn Gldywn commented Mar 31, 2026

Summary

  • Remove caret range (^1.10.01.10.0) to prevent resolving a compromised axios version on fresh install or update
  • Context: axios@1.14.1 and axios@0.30.4 were compromised via the plain-crypto-js malware package (ref)

Test plan

  • npm ci still works (lockfile already pins 1.10.0)

Note

Low Risk
Low risk dependency metadata change; it only restricts version resolution and shouldn’t affect runtime behavior beyond preventing accidental upgrades.

Overview
Pins axios in package.json from ^1.10.0 to the exact 1.10.0 to prevent fresh installs/updates from resolving to newer (potentially compromised) versions.

Written by Cursor Bugbot for commit 8db6773. Configure here.

Remove caret range (^1.10.0 → 1.10.0) to ensure npm/pnpm never
resolves a compromised version on fresh install or update.
Context: axios@1.14.1 and axios@0.30.4 were compromised via
the plain-crypto-js malware package.
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sync lockfile specifier (^1.10.0 → 1.10.0) so npm ci
doesn't fail on the mismatch.
@Gldywn Gldywn merged commit 2f593e3 into main Mar 31, 2026
2 checks passed
@Gldywn Gldywn deleted the security/pin-axios-version branch March 31, 2026 08:15
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