chore(deps): override js-yaml to patched 3.15.0 / 4.2.0 (Dependabot)#7798
Merged
Conversation
…abot alerts Bumps the transitive js-yaml dependency via version-scoped npm overrides: - js-yaml ^3 -> ^3.15.0 (used by grunt, nyc/@istanbuljs/load-nyc-config) - js-yaml ^4 -> ^4.2.0 (used by mocha, eslint, puppeteer/cosmiconfig) Resolves the two open js-yaml Dependabot alerts (quadratic-complexity DoS in merge-key handling). Both bumps stay within their major version, so all consumers keep API-compatible js-yaml. Only js-yaml nodes change in the lockfile. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the root npm dependency resolution to address js-yaml security advisories by enforcing patched js-yaml versions via overrides, and regenerates the lockfile so installs consistently pick the patched versions across the toolchain (grunt/mocha/eslint/puppeteer, etc.).
Changes:
- Add npm
overridesentries to forcejs-yaml@^3to^3.15.0andjs-yaml@^4to^4.2.0. - Regenerate
package-lock.jsonso js-yaml nodes resolve to patched versions (e.g., 3.15.0 and 4.3.0).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Adds version-scoped npm overrides to enforce patched js-yaml versions across transitive dependencies. |
| package-lock.json | Updates locked js-yaml resolutions to patched versions consistent with the new overrides. |
davidecavaliere
approved these changes
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds two version-scoped npm
overridesfor the transitive js-yaml dependency in the root manifest, and regeneratespackage-lock.json:js-yaml@^3.0.0->^3.15.0js-yaml@^4.0.0->^4.2.0Why
Resolves the two remaining open js-yaml Dependabot alerts (quadratic-complexity DoS in merge-key handling via repeated aliases):
4.0.0–4.1.1, patched in4.2.0< 3.15.0, patched in3.15.0js-yaml is pulled in transitively by dev/build tooling:
gruntandnyc -> @istanbuljs/load-nyc-configmocha,eslint, andpuppeteer -> cosmiconfigBoth patches are within-major (3.14.2 -> 3.15.0, 4.1.1 -> 4.3.0), so every consumer keeps an API-compatible js-yaml. The lockfile diff touches only js-yaml nodes — no unrelated churn — and
npm auditreports no remaining js-yaml advisories.Testing
CI exercises all three consumer paths:
lint(eslint),dist-all(grunt), andmochaTest(mocha) — verifying the bumped js-yaml versions don't break linting, the asset build, or the test runner.🤖 Generated with Claude Code