Skip to content

chore(deps): resolve js-yaml DoS (GHSA-h67p-54hq-rp68) via read-yaml-file override - #1676

Merged
kompiro merged 1 commit into
mainfrom
chore/dependabot-security-2026-06-18
Jun 18, 2026
Merged

kompiro merged 1 commit into
mainfrom
chore/dependabot-security-2026-06-18

Conversation

@kompiro

@kompiro kompiro commented Jun 18, 2026

Copy link
Copy Markdown
Owner

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-overriding js-yaml to 4 breaks [email protected] (calls the removed yaml.safeLoad), so the prior triage left it open. Instead this PR overrides read-yaml-file itself, eliminating [email protected] from the tree entirely.

Changes

Verification

  • pnpm why js-yaml → only [email protected] (via [email protected])
  • pnpm changeset status works (exercises @changesets → @manypkg → read-yaml-file reading pnpm-workspace.yaml)
  • pnpm build passes; only package.json + pnpm-lock.yaml change — no published-artifact (THIRD_PARTY_NOTICES) drift
  • full test suite passes
  • pnpm adr:validate clean

Scope filter (new-feature PRs only)

  • N/A — not a new-feature PR

Dependency & license impact

  • N/A — no production dependency added or bumped across a major version (dev-only transitive override)

Manual Verification Checklist

N/A — all covered by automated tests and lockfile verification

TPL impact

Disposition: N/A — chore (dev-only transitive dependency override)

Related Docs

  • docs/adr/20260618-02-jsyaml-readyamlfile-override.md
  • docs/adr/20260616-07-dependabot-security-2026-06-16.md

…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]>
@kompiro
kompiro merged commit b01411f into main Jun 18, 2026
11 checks passed
@kompiro
kompiro deleted the chore/dependabot-security-2026-06-18 branch June 18, 2026 08:53

This branch was successfully deployed

1 active deployment
preview — 379709ef Deployed Jun 18, 2026 by github-actions[bot]
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.

chore(deps): fully resolve Dependabot security alert #24 (js-yaml transitive via read-yaml-file)

1 participant