Skip to content

fix: bump dependencies and resolve npm audit vulnerabilities - #201

Merged
dianaKhortiuk-frontegg merged 1 commit into
nextfrom
nodejs-sdk-deps-security-87636f
Jul 14, 2026
Merged

fix: bump dependencies and resolve npm audit vulnerabilities#201
dianaKhortiuk-frontegg merged 1 commit into
nextfrom
nodejs-sdk-deps-security-87636f

Conversation

@dianaKhortiuk-frontegg

Copy link
Copy Markdown
Collaborator

Summary

Regenerates the stale package-lock.json and bumps dependencies so npm audit reports 0 vulnerabilities (down from 51). The stale lockfile (still pinning axios 1.15.0, express 4.21.2, and a bundled npm@9.9.4) was the root cause of the inflated audit count.

Changes

Production dependencies (shipped to consumers + the only tier the CI audit-ci gate enforces):

  • axios ^1.15.0^1.18.1 — resolves ~20 high-severity CVEs (SSRF, prototype pollution, ReDoS, credential leakage). The one production vulnerability.
  • winston ^3.18.3^3.19.0
  • @frontegg/entitlements-javascript-commons ^1.1.3^1.2.1

Overrides (patch transitive advisories):

  • form-data ^4.0.6 — CRLF injection; axios pulled a vulnerable 4.0.5
  • tmp ^0.2.5^0.2.7 — path traversal; the old ^0.2.5 override still resolved to vulnerable 0.2.5 (advisory requires ≥0.2.6)

Dev dependencies (audit noise; not CI-gated since audit-ci.jsonc has skip-dev: true, cleaned up for hygiene):

  • express ^4.19.2^4.22.2
  • jest-junit ^14.0.1^17.0.0
  • semantic-release ^21.0.5^25.0.7 — drops the bundled npm@9.9.4 that accounted for ~30 of the transitive advisories

Docs:

  • Added a Security section to the README (patched-dependency posture, CI vulnerability check, responsible disclosure to security@frontegg.com). docs/CHANGELOG.md is intentionally untouched — it's auto-generated by semantic-release at release time.

Verification

  • npm audit: 0 vulnerabilities (full tree and --omit=dev)
  • Build (tsc): ✅
  • Tests: ✅ 228 passed / 28 suites
  • Lint: ✅ (verified with plugin resolution pinned to the checkout)

🤖 Generated with Claude Code

Regenerate the stale package-lock.json and update dependencies so that
`npm audit` reports 0 vulnerabilities (down from 51).

Production:
- axios ^1.15.0 -> ^1.18.1 (resolves multiple high-severity CVEs:
  SSRF, prototype pollution, ReDoS, credential leaks)
- winston ^3.18.3 -> ^3.19.0
- @frontegg/entitlements-javascript-commons ^1.1.3 -> ^1.2.1

Overrides (transitive advisories):
- form-data ^4.0.6 (CRLF injection; axios pulled vulnerable 4.0.5)
- tmp ^0.2.5 -> ^0.2.7 (path traversal; 0.2.5 was still vulnerable)

Dev:
- express ^4.19.2 -> ^4.22.2
- jest-junit ^14.0.1 -> ^17.0.0
- semantic-release ^21.0.5 -> ^25.0.7 (drops bundled npm@9.9.4)

Also add a Security section to the README documenting the patched
dependency posture and responsible disclosure to security@frontegg.com.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dianaKhortiuk-frontegg
dianaKhortiuk-frontegg merged commit c2e0a28 into next Jul 14, 2026
5 checks 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.

1 participant