Skip to content

Commit 1622ffe

Browse files
fix: patch js-yaml DoS (GHSA-h67p-54hq-rp68) via override
Force js-yaml to 3.15.0 (the official 3.x patch for the quadratic-complexity DoS in merge-key alias handling) via a pnpm override. It reaches us through gray-matter@4.0.3 -> vitepress-plugin-llms; gray-matter requires js-yaml ^3.13.1, so 3.15.0 stays in range and is API-compatible. Also drop the auditConfig.ignoreGhsas suppression for this advisory, which was based on the now-outdated assumption that the 3.x line could not be patched.
1 parent 3d38671 commit 1622ffe

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

pnpm-lock.yaml

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,12 @@ overrides:
1313
vite: 6.4.3 # was 6.4.2 — GHSA-fx2h-pf6j-xcff (high), GHSA-v6wh-96g9-6wx3
1414
postcss: 8.5.15 # GHSA-qx2v-qp2m-jg93 (via vite)
1515
uuid: 11.1.1 # GHSA-w5hq-g745-h8pq (via mermaid; stays in mermaid's ^11 range)
16+
js-yaml: 3.15.0 # GHSA-h67p-54hq-rp68 quadratic-DoS via merge-key aliases (via gray-matter; stays in its ^3.13.1 range)
1617

1718
peerDependencyRules:
1819
allowedVersions:
1920
vitepress: "2"
2021

21-
auditConfig:
22-
ignoreGhsas:
23-
# js-yaml 3.x quadratic-DoS via merge-key aliases (CVE-2026-53550).
24-
# gray-matter@4.0.3 hard-pins js-yaml 3.x (uses safeLoad/safeDump, removed
25-
# in 4.x) and has no newer release; the fix only landed in js-yaml >=4.2.0,
26-
# so 3.x cannot be patched. js-yaml here only parses this repo's own
27-
# build-time frontmatter (trusted input), so the DoS is not reachable.
28-
- GHSA-h67p-54hq-rp68
29-
3022
# Build scripts left disabled (matching prior pnpm 10 behavior — neither was
3123
# ever approved, and the site builds fine without them). Flip to true to allow.
3224
allowBuilds:

0 commit comments

Comments
 (0)