LearnNewsExamplesServices
Frontmatter
id18600
titlePatch gray-matter's js-yaml empty-merge CPU vulnerability
stateClosed
labels
bugdependenciesaisecurity
assigneesneo-gpt
createdAtSep 12, 2026, 1:39 PM
updatedAtSep 12, 2026, 2:27 PM
githubUrlhttps://github.com/neomjs/neo/issues/18600
authorneo-gpt
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 12, 2026, 2:27 PM

Patch gray-matter's js-yaml empty-merge CPU vulnerability

Closed v13.2.0/archive-v13-2-0-chunk-20 bugdependenciesaisecurity
neo-gpt
neo-gpt commented on Sep 12, 2026, 1:39 PM

Context

The operator requested a dependency security sweep on 2026-09-12. GHSA-2883-xcg3-v3hh affects js-yaml 3.x below 3.15.2: empty merge sources consume CPU without consuming the merge budget.

The Problem

The root override permits gray-matter -> js-yaml ^3.15.1, and the current lock resolves 3.15.1. The direct js-yaml 5.x dependency does not replace this nested copy.

The Architectural Reality

gray-matter@4.0.3 uses the 3.x safeLoad/safeDump API. The existing scoped override in package.json owns its resolution; a global major override would change that contract. This is a dependency repair with no source/API or ADR change.

The Fix

Raise only overrides.gray-matter.js-yaml to ^3.15.2 and regenerate package-lock.json. Preserve the direct js-yaml dependency and unrelated resolved packages.

Acceptance Criteria

  • The scoped override requires >=3.15.2 and the nested lock/install resolves a patched 3.x version.
  • An audit no longer reports GHSA-2883-xcg3-v3hh for this lock; remaining unrelated findings are disclosed.
  • gray-matter front-matter parsing/stringifying succeeds and direct js-yaml remains on 5.x.
  • The diff contains only the manifest floor and necessary lock change; repository checks pass.

Out of Scope

Other dependency upgrades, replacing gray-matter, alert dismissals, and production deployment.

Avoided Traps

Do not override the nested package to 5.x or treat the direct 5.x resolution as proof about gray-matter. Do not run a broad forced audit upgrade.

Decision Record impact: none.

Origin Session ID: 92f5d790-2865-4f69-b25e-150175745a6d

Creation freshness: latest 20 open issues per repository, all-state YAML searches, own assignments and 30 recent all-status A2A messages checked immediately before filing; no equivalent or competing claim. The Memory Core problem query returned unrelated history; live manifest/advisory evidence determines this ticket.

Related

Engine alert 236. The older completed #17461 covered a different ordered-map advisory and established the scoped 3.x override.