Skip to content

chore(deps): fix npm audit vulnerabilities - #372

Merged
aharoitx merged 1 commit into
bitpay:8.0.xfrom
aharoitx:chore/fix-npm-audit-js-yaml
Aug 19, 2026
Merged

chore(deps): fix npm audit vulnerabilities#372
aharoitx merged 1 commit into
bitpay:8.0.xfrom
aharoitx:chore/fix-npm-audit-js-yaml

Conversation

@aharoitx

Copy link
Copy Markdown
Contributor

Problem

The audit CI job runs npm audit --audit-level=high and is currently failing
on 8.0.x. Because the vulnerability lives in the base branch dependency tree,
it fails on every open pull request, blocking all pending dependabot updates.

Cause

js-yaml 4.3.0 is affected by GHSA-5p4m-2wfm-xmqj (CVE-2026-59870) — quadratic
CPU consumption in !!omap resolution — rated high.

It is a dev-only transitive dependency, pulled in through @eslint/eslintrc,
so the published SDK runtime is not affected.

Fix

Lockfile-only change generated with npm audit fix: bumps the transitive
js-yaml from 4.3.0 to 4.3.1. No changes to package.json or source code.

Verification

  • npm audit --audit-level=high now exits 0
  • npm run lint passes
  • npm run build passes
  • Unit tests pass (55/55)

The remaining elliptic advisory (GHSA-848j-6mx2-7j84) is low severity with
no fix available upstream, and does not trip the --audit-level=high gate.

@aharoitx
aharoitx merged commit 82a41be into bitpay:8.0.x Aug 19, 2026
6 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.

2 participants