Repository navigation
fix(deps): resolve js-yaml CVE-2025-27714 via pnpm overrides - #3607
Merged
Merged
Conversation
Add pnpm overrides to fix two Dependabot alerts for js-yaml: - read-yaml-file>js-yaml: ^3.15.0 (patches quadratic DoS in 3.x line) - @changesets/parse>js-yaml: >=4.2.0 (patches quadratic DoS in 4.x line) Both are transitive deps of @changesets/cli. The overrides keep each consumer on an API-compatible major line (3.x uses safeLoad, 4.x+ uses load with schema argument).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
josephfarina
approved these changes
Jul 5, 2026
Contributor
|
Heads up: the |
cixzhang
marked this pull request as ready for review
July 8, 2026 04:23
cixzhang
requested review from
ejhammond,
imdreamrunner,
marie-lucas,
nynexman4464 and
thedjpetersen
as code owners
July 8, 2026 04:23
github-actions
Bot
deleted the
navi/chore/dependency-night-watch-20260705
branch
July 12, 2026 06:58
5 tasks done
cixzhang
pushed a commit
that referenced
this pull request
Jul 25, 2026
…#3221) (#3889) `@changesets/cli` -> `@manypkg/get-packages` -> `read-yaml-file` was still resolving js-yaml 3.15.0, below the 4.2.0 that patches CVE-2026-53550. The override added in #3607 fixed a different js-yaml advisory and deliberately held this chain on the 3.x line, because read-yaml-file 1.x calls `safeLoad`, which 4.x renamed to `load` — so overriding js-yaml alone throws `TypeError: yaml.safeLoad is not a function`. Lift the package rather than patch it. read-yaml-file 2.x calls `load` and depends on js-yaml ^4, so the pin is no longer needed. Its only consumer is @manypkg/get-packages, and 2.x keeps the same CJS surface (default export, `.default`, and `.sync`), so nothing at the call site changes. This also avoids introducing `pnpm patch` machinery — which the issue proposed, but which the repo does not use and which would touch every install and the release pipeline. The js-yaml floor is `^4.2.0`, not `>=4.2.0`: the looser range resolves to js-yaml 5.x, outside the `^4` range read-yaml-file 2.x declares. Net effect on the tree: js-yaml 3.15.0, read-yaml-file 1.1.0, argparse 1.0.10 and sprintf-js 1.0.3 leave; js-yaml 4.3.0, read-yaml-file 2.1.0 and strip-bom 4.0.0 arrive. No package.json changes, no new direct dependency, and the chain is dev-side (release tooling) — nothing ships in core's runtime deps. Claude-Session: https://claude.ai/code/session_01VYm8FsvUjk3xwDmonZRYeE
This branch was successfully deployed
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.
Resolves Dependabot alerts #102 and #103 for js-yaml quadratic-complexity DoS (CVE-2025-27714).
Changes:
read-yaml-file>js-yaml: ^3.15.0-- keeps the 3.x consumer on a patched 3.x release (read-yaml-file depends on the 3.xsafeLoadAPI)@changesets/parse>js-yaml: >=4.2.0-- bumps the 4.x consumer past the vulnerable rangeBoth are transitive dependencies of
@changesets/cli. Verified withpnpm buildandpnpm test --run(306 files, 5582 tests passing).Not addressed here:
Night Watch -- Dependencies