Skip to content

fix(deps): bump js-yaml override to 4.3.2 (GHSA-2883-xcg3-v3hh) - #339

Merged
htilly merged 1 commit into
masterfrom
claude/security-advisory-ghsa-2883-fzpit7
Sep 14, 2026
Merged

htilly merged 1 commit into
masterfrom
claude/security-advisory-ghsa-2883-fzpit7

Conversation

@htilly

@htilly htilly commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes GHSA-2883-xcg3-v3hh, a Dependabot alert flagged on this repo's default branch.

js-yaml versions >= 4.0.0, < 4.3.2 (and >= 3.0.0, < 3.15.2) have a denial-of-service vulnerability: the maxTotalMergeKeys limit fails to properly bound CPU usage when a YAML document repeatedly merges empty mappings, so a small, crafted YAML document can cause prolonged CPU consumption despite the configured limit. The fix counts each merge-source mapping as a budget unit in addition to its keys.

This repo already pinned js-yaml via the overrides field, but to the vulnerable ^4.3.1, which resolved to js-yaml@4.3.1.

Changes

  • package.json: bump the js-yaml override from ^4.3.1 to ^4.3.2 (the patched version).
  • package-lock.json: regenerated to resolve js-yaml to 4.3.2.

Testing

  • npm install
  • npm test — all 843 tests pass.
  • Confirmed via npm audit and package-lock.json that js-yaml now resolves to 4.3.2.

🤖 Generated with Claude Code

https://claude.ai/code/session_016yFmmydHNhbvrmnvVtEuXZ


Generated by Claude Code

js-yaml < 4.3.2 has a DoS vulnerability where maxTotalMergeKeys fails to
properly bound CPU usage when a YAML document repeatedly merges empty
mappings, letting a small crafted document cause prolonged CPU
consumption. Bump the js-yaml override from ^4.3.1 to ^4.3.2 to pick up
the fix, which counts each merge-source mapping as a budget unit.

Verified full test suite (843 tests) still passes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016yFmmydHNhbvrmnvVtEuXZ
@htilly
htilly marked this pull request as ready for review September 14, 2026 06:03
@htilly
htilly merged commit 9e35be5 into master Sep 14, 2026
8 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