Skip to content

chore(deps): raise the js-yaml override floor to the omap-fix release - #2392

Merged
kompiro merged 1 commit into
mainfrom
chore/dependabot-security-20260807
Aug 7, 2026
Merged

kompiro merged 1 commit into
mainfrom
chore/dependabot-security-20260807

Conversation

@kompiro

@kompiro kompiro commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Purpose

Closes #2390

Summary

Resolves the one open Dependabot security alert (#66, high, GHSA-5p4m-2wfm-xmqj): quadratic CPU consumption in js-yaml's !!omap resolution. js-yaml is transitive, so Dependabot could not synthesize a security update PR — the fix is a floor raise on the existing scoped pnpm override.

Changes

  • package.json — pnpm.overrides["js-yaml@4"]: ^4.3.0 → ^4.3.1
  • pnpm-lock.yaml — refreshed; the 4.3.0 entry is gone and all 13 dependents resolve to 4.3.1

The override was already pinning js-yaml at ^4.3.0, which is exactly the range the advisory calls vulnerable (>= 4.0.0, < 4.3.1). Five dev-scope packages sat on 4.3.0: @kompiro/adr-tools, @kompiro/tpl-tools, astro, mocha, vscode-extension-tester. The @4 scope is kept deliberately — an unscoped "js-yaml" key would force any future 3.x or 5.x dependent across a major boundary for no security reason. No js-yaml 3.x remains in the tree (removed in #1676 / ADR-1675), so the 3.x half of the advisory does not apply.

Verification

  • Lock diff contains nothing but the removal of the js-yaml 4.3.0 block — no unrelated bumps
  • pnpm build passes
  • pnpm test passes (9 suites, exit 0)
  • No changeset: dev-scope dependency, no user-visible change to the published packages

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

Manual Verification Checklist

TPL impact

Disposition: N/A — dependency floor raise, no behavior change.

Related Docs

  • ADR to follow in a separate ADR-only PR (per the security-alert workflow)

The scoped pnpm override pinned js-yaml@4 at ^4.3.0, which is exactly the
line GHSA-5p4m-2wfm-xmqj calls vulnerable: resolveYamlOmap() checks key
uniqueness with a linear indexOf scan inside the per-element loop, so
resolving an n-entry !!omap is O(n^2). !!omap lives in the default schema,
so a plain yaml.load() is affected. Same weakness as CVE-2026-59870, never
backported out of the 5.x line.

Raise the floor to ^4.3.1 so the five dev-scope dependents still sitting on
4.3.0 (adr-tools, tpl-tools, astro, mocha, vscode-extension-tester) move up.
The @4 scope stays: an unscoped key would drag any future 3.x or 5.x
dependent across a major boundary for no security reason.

Refs #2390

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@kompiro
kompiro merged commit 5ebabbd into main Aug 7, 2026
9 checks passed
@kompiro
kompiro deleted the chore/dependabot-security-20260807 branch August 7, 2026 22:54

This branch was successfully deployed

1 active deployment
preview — f6c5c2e5 Deployed Aug 7, 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): resolve Dependabot security alert for js-yaml (GHSA-5p4m-2wfm-xmqj)

1 participant