Repository navigation
chore(deps): raise the js-yaml override floor to the omap-fix release - #2392
Merged
Merged
Conversation
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]>
2 tasks done
2 of 4 tasks
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 #2390
Summary
Resolves the one open Dependabot security alert (#66, high, GHSA-5p4m-2wfm-xmqj): quadratic CPU consumption in js-yaml's
!!omapresolution. 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.1pnpm-lock.yaml— refreshed; the 4.3.0 entry is gone and all 13 dependents resolve to 4.3.1The 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@4scope 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
pnpm buildpassespnpm testpasses (9 suites, exit 0)Scope filter (new-feature PRs only)
Dependency & license impact
Manual Verification Checklist
TPL impact
Related Docs