Repository navigation
chore(deps): resolve js-yaml DoS (GHSA-h67p-54hq-rp68) via read-yaml-file override - #1676
Merged
Merged
Conversation
…file override Dependabot security alert #24 (js-yaml, GHSA-h67p-54hq-rp68 / CVE-2026-53550, medium — quadratic-complexity DoS in merge-key handling) remained open after the 2026-06-16 triage: a vulnerable [email protected] lingered dev-only via @changesets/cli -> @manypkg/[email protected] -> [email protected]. Force-overriding js-yaml to 4 breaks [email protected] (removed safeLoad API), so the prior triage left it open. Instead, override read-yaml-file itself: "read-yaml-file@1": "^2.1.0" [email protected] is CJS (default + .sync, the API @[email protected] consumes) and natively uses js-yaml@^4 (yaml.load). The key is scoped to @1 so the ESM-only 3.0.0 is never pulled. [email protected] is fully removed from the tree; only the patched [email protected] remains. Verified: pnpm why js-yaml shows only 4.2.0; pnpm changeset status works; build + full test suite pass; no published-artifact drift. Records ADR-20260618-02 (revises the alert #24 sub-decision of ADR-20260616-07). Closes #1675 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This was referenced Aug 7, 2026
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.
Purpose
Closes #1675
Fully resolves Dependabot security alert #24 (
js-yaml, GHSA-h67p-54hq-rp68 / CVE-2026-53550, medium — quadratic-complexity DoS in merge-key handling), which had remained open since the 2026-06-16 triage (ADR-20260616-07).Summary
A vulnerable
[email protected]lingered dev-only via@changesets/cli → @manypkg/[email protected] → [email protected]. Force-overridingjs-yamlto 4 breaks[email protected](calls the removedyaml.safeLoad), so the prior triage left it open. Instead this PR overridesread-yaml-fileitself, eliminating[email protected]from the tree entirely.Changes
package.json: add"read-yaml-file@1": "^2.1.0"topnpm.overrides.[email protected]is CJS (default+.sync— the API@[email protected]consumes) and natively usesjs-yaml@^4(yaml.load). Key scoped to@1so the ESM-only3.0.0is never pulled.pnpm-lock.yaml:[email protected]→2.1.0;[email protected]removed; only[email protected]remains.docs/adr/20260618-02-jsyaml-readyamlfile-override.md: new ADR documenting the fix.docs/adr/20260616-07-...: revision note +related_toback-ref (the other 12 alert resolutions in that ADR stay in force; only the alert docs: restructure docs layout — remove features/, promote settled designs to ADR #24 sub-decision is revised).Verification
pnpm why js-yaml→ only[email protected](via[email protected])pnpm changeset statusworks (exercises@changesets → @manypkg → read-yaml-filereadingpnpm-workspace.yaml)pnpm buildpasses; onlypackage.json+pnpm-lock.yamlchange — no published-artifact (THIRD_PARTY_NOTICES) driftpnpm adr:validatecleanScope filter (new-feature PRs only)
Dependency & license impact
Manual Verification Checklist
N/A — all covered by automated tests and lockfile verification
TPL impact
Related Docs