Skip to content

fix: resolve critical and high severity npm vulnerabilities#101

Merged
aa-replicated merged 2 commits intomainfrom
fix/dependabot-vulnerabilities
Apr 14, 2026
Merged

fix: resolve critical and high severity npm vulnerabilities#101
aa-replicated merged 2 commits intomainfrom
fix/dependabot-vulnerabilities

Conversation

@aa-replicated
Copy link
Copy Markdown
Contributor

Summary

  • Updates package-lock.json via npm audit fix to resolve 6 open Dependabot vulnerabilities (2 critical, 3 high, 1 moderate)
  • No changes to package.json — all fixes were to indirect/transitive dependencies

Vulnerabilities Fixed

Package Severity Advisory
axios ≤1.14.0 Critical SSRF via NO_PROXY bypass (GHSA-3p68-rc4w-qgx5) and header injection (GHSA-fvcv-3m26-pcqx)
handlebars ≤4.7.8 Critical/High JS injection via AST type confusion and prototype pollution (multiple CVEs)
basic-ftp ≤5.2.1 High CRLF injection / FTP command injection (GHSA-6v7q-wjvx-w8wg, GHSA-chqc-8p9q-pq6q)
lodash ≤4.17.23 High Code injection and prototype pollution (GHSA-r5fr-rjxr-66jc, GHSA-f23m-r3pf-42rh)
path-to-regexp 8.0.0–8.3.0 High ReDoS via sequential optional groups (GHSA-j3q9-mxjg-w52f, GHSA-27v5-c462-wpq7)
brace-expansion Moderate Process hang / memory exhaustion via zero-step sequence

These are all devDependencies (via @pact-foundation/pact, ts-jest, mockttp, get-uri) and do not affect published library consumers.

Test plan

  • npm audit reports 0 vulnerabilities after fix
  • All 46 tests pass (npm test)

🤖 Generated with Claude Code

aa-replicated and others added 2 commits April 13, 2026 10:53
Update indirect dependencies via npm audit fix to address:
- axios <=1.14.0: critical SSRF via NO_PROXY bypass and header injection (GHSA-3p68-rc4w-qgx5, GHSA-fvcv-3m26-pcqx)
- handlebars <=4.7.8: critical/high JS injection and prototype pollution (multiple CVEs)
- basic-ftp <=5.2.1: high CRLF injection / FTP command injection (GHSA-6v7q-wjvx-w8wg, GHSA-chqc-8p9q-pq6q)
- lodash <=4.17.23: high code injection and prototype pollution (GHSA-r5fr-rjxr-66jc, GHSA-f23m-r3pf-42rh)
- path-to-regexp 8.0.0-8.3.0: high ReDoS (GHSA-j3q9-mxjg-w52f, GHSA-27v5-c462-wpq7)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fail() was removed in Jest 27+; replace with throw so errors surface correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aa-replicated
Copy link
Copy Markdown
Contributor Author

was looking to add axios vuln, need to redo it.

@aa-replicated
Copy link
Copy Markdown
Contributor Author

OK, 1.15.0 is reported as safe and fixes the CRIT. re-opening.

@aa-replicated aa-replicated reopened this Apr 14, 2026
Comment thread src/customers.spec.ts
})
.catch(err => {
fail(err);
throw err;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any reason for changing fail to throw?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I had tests failing and claude found that it was because of a newer jest version. but now I don't see why there was a newer version, maybe that was a consequence of my environment. I'll look into it.

@aa-replicated aa-replicated merged commit 2fdd727 into main Apr 14, 2026
2 checks passed
@aa-replicated aa-replicated deleted the fix/dependabot-vulnerabilities branch April 14, 2026 20:07
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