Skip to content

Update build-time axios dependency to 1.16.1 to resolve security advisories#285

Merged
dgershman merged 1 commit into
mainfrom
feature/mayo-284-update-axios
May 23, 2026
Merged

Update build-time axios dependency to 1.16.1 to resolve security advisories#285
dgershman merged 1 commit into
mainfrom
feature/mayo-284-update-axios

Conversation

@dgershman

Copy link
Copy Markdown
Contributor

Closes #284

What

Bumps the transitive axios dependency from 1.13.2 → 1.16.1 in package-lock.json.

Why

axios is not a direct dependency — it's pulled in only by the dev/build toolchain (@wordpress/scripts → jest-dev-server → wait-on → axios) and does not appear in any shipped bundle (assets/js/dist/), so the vulnerable code never reaches WordPress users. The lockfile resolved 1.13.2, which is below the 1.15.1 patch line for a batch of advisories (prototype pollution, header injection, NO_PROXY bypass, CRLF injection, SSRF, etc.). This clears npm audit and keeps the dev toolchain current.

wait-on already declares axios: "^1.12.1", which permits 1.16.1, so no overrides block was needed — only package-lock.json changed (package.json is untouched, axios stays transitive).

Verification

  • grep -A1 '"node_modules/axios"' package-lock.json"version": "1.16.1"
  • npm audit → no axios advisories
  • npm run build → compiled successfully

🤖 Generated with Claude Code

…sories [#284]

axios is a transitive dev/build dependency (@wordpress/scripts → jest-dev-server
→ wait-on → axios), not a direct dependency and not shipped in any plugin
bundle. The lockfile resolved 1.13.2, below the 1.15.1 patch line for a batch of
security advisories (prototype pollution, header injection, NO_PROXY bypass,
CRLF injection, SSRF). wait-on already permits ^1.12.1, so only package-lock.json
changes — no overrides needed. npm audit now reports no axios advisories and the
production build still succeeds.

🐦‍⬛ Generated with Claude Code, orchestrated by Crow

Co-Authored-By: Claude <noreply@anthropic.com>
Crow-Session: 813E287D-548F-42EA-8624-A08C354D2A6C
@dgershman dgershman merged commit 615d501 into main May 23, 2026
3 checks passed
@dgershman dgershman deleted the feature/mayo-284-update-axios branch May 23, 2026 21:40
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.

Update out-of-date axios (1.13.2 → 1.16.1) in build toolchain

1 participant