chore(deps): collapse stale transitive js-yaml pins onto the patched releases - #6830
Conversation
…releases GHSA-5p4m-2wfm-xmqj (quadratic CPU in !!omap resolution) is patched in js-yaml 4.3.1 and 3.15.1. Both direct dependents already pin 4.3.1, but bun.lock still held ten stale nested resolutions — 4.2.0, 4.3.0, and 3.14.2 — under fumadocs, electron-builder/updater, gray-matter, and json-schema-to-typescript. Every one of those ranges (^4.1.0, ^4.1.1, ^3.13.1) already admits the patched release, so this is a lockfile-only dedupe: no manifest change and no overrides block, which would force gray-matter's 3.x range onto js-yaml 4 and break it.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview Those transitive ranges already allow patched releases, so installs dedupe to hoisted 4.3.1 except No Reviewed by Cursor Bugbot for commit 8367e83. Configure here. |
Greptile SummaryThis PR consolidates stale transitive js-yaml resolutions onto patched releases without changing dependency manifests.
Confidence Score: 5/5The PR appears safe to merge because the retained js-yaml versions satisfy every affected parent range while preserving gray-matter’s required 3.x dependency. The lockfile deduplication routes nine compatible dependents to js-yaml 4.3.1 and updates gray-matter within its declared 3.x range, with no changed-code failure identified.
|
| Filename | Overview |
|---|---|
| bun.lock | Removes redundant vulnerable js-yaml 4.x resolutions and patches the retained gray-matter-specific 3.x copy; all affected dependency ranges remain satisfied. |
Reviews (1): Last reviewed commit: "chore(deps): collapse stale transitive j..." | Re-trigger Greptile
Summary
GHSA-5p4m-2wfm-xmqj(quadratic CPU consumption in!!omapresolution) is patched in js-yaml 4.3.1 and 3.15.1. The advisory prose still says the fix was "never backported" — that text is stale; the backport landed on both legacy lines and the advisory's machine-readablefirst_patched_versionreflects it.apps/sim,packages/sim-cli) already pin4.3.1, so the open Dependabot alert is a stale scan and closes on its own.bun.lockstill held ten vulnerable nested resolutions Dependabot never sees —4.2.0×5,4.3.0×4,3.14.2×1 — under fumadocs (core/mdx/openapi), electron-builder (app-builder-lib,builder-util,dmg-builder),electron-updater,gray-matter,json-schema-to-typescript, and@apidevtools/json-schema-ref-parser.^4.1.0,^4.1.1,^3.13.1) already admits the patched release, so this is a lockfile-only dedupe — nine entries drop to the hoisted4.3.1, andgray-mattermoves3.14.2→3.15.1. Two js-yaml copies remain, both patched.overridesblock: a flat override would forcegray-matter's^3.13.1onto js-yaml 4, which removedsafeLoadand would break the docs build.Type of Change
Testing
n=150,000loads in 173 ms (4.3.1) and 191 ms (3.15.1), against the 10.8 s the advisory measured on the vulnerable versions.hasOwnProperty-map resolver rather than theobjectKeys.indexOflinear scan.bun install --frozen-lockfileresolves and installs cleanly with no lockfile drift.apps/docsbuild passes, which exercises the fumadocs andgray-matterYAML paths that moved.bun run lint,check-block-registry, and all 29 audits inbun run check:auditspass.Checklist