Skip to content

pin axios to known-safe version#153

Merged
vigneshrajsb merged 1 commit intomainfrom
codex/pin-axios-safe-version
Mar 31, 2026
Merged

pin axios to known-safe version#153
vigneshrajsb merged 1 commit intomainfrom
codex/pin-axios-safe-version

Conversation

@vigneshrajsb
Copy link
Copy Markdown
Contributor

@vigneshrajsb vigneshrajsb commented Mar 31, 2026

What changed

  • pin the direct axios dependency to 0.30.0 instead of allowing ^0.30.0
  • update the lockfile specifier to match the pinned dependency
  • require pnpm install --frozen-lockfile in the Docker build paths that install app dependencies

Why

Socket reported a supply-chain compromise affecting axios@0.30.4 and axios@1.14.1 on March 31, 2026:
https://socket.dev/blog/axios-npm-package-compromised

This repo's checked-in lockfile was already on axios@0.30.0, but the semver range still allowed a future re-resolve to the compromised 0.30.4 release. The Dockerfiles also allowed non-frozen installs, which could refresh the lock during image builds.

Impact

  • keeps the repo on the known-safe locked axios version
  • prevents Docker builds from drifting away from the checked-in lockfile
  • leaves unrelated local work untouched

Validation

  • pnpm install --frozen-lockfile --ignore-scripts

@vigneshrajsb vigneshrajsb changed the title [codex] pin axios to known-safe version pin axios to known-safe version Mar 31, 2026
@vigneshrajsb vigneshrajsb marked this pull request as ready for review March 31, 2026 16:06
@vigneshrajsb vigneshrajsb requested a review from a team as a code owner March 31, 2026 16:06
@vigneshrajsb vigneshrajsb merged commit 5b13693 into main Mar 31, 2026
1 check passed
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.

2 participants