You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
deps: js-yaml 3.x -> 4.x major bump needed (CVE-2026-53550) #3221
A pnpm override for js-yaml to ^4.2.0 may break read-yaml-file since js-yaml 4.x dropped several APIs (e.g. safeLoad removed, replaced by load). Needs verification or an upstream fix in @changesets/cli.
Risk: Low for this project. The vulnerable code path (merge key aliasing) would only trigger if processing untrusted YAML. Changeset YAML files are authored locally.
Confirmed the override risk you flagged — a plain pnpm.overrides bump to js-yaml@^4will break the changeset tooling at runtime:
read-yaml-file/index.js (line 8) calls yaml.safeLoad(...), and its package.json pins js-yaml: ^3.6.1.
js-yaml 4.x removed safeLoad (it's load now), so forcing 4.x makes read-yaml-file throw yaml.safeLoad is not a function whenever @manypkg/get-packages reads YAML (e.g. pnpm-workspace.yaml) — which @changesets/cli does on basically every invocation.
So an override alone isn't safe here. Viable paths:
pnpm patch read-yaml-file → change safeLoad → load (and safeDump→dump if present), then add the js-yaml: ^4.2.0 override. Small, self-contained, fully under this repo's control.
Upstream: bump read-yaml-file / @manypkg/get-packages / @changesets/cli to versions that use js-yaml 4.x (if available), then drop the override.
Given the advisory's low practical risk here (changeset YAML is locally authored, not untrusted), option 1 is probably the cleanest stopgap. Happy to put up the pnpm patch version if that direction sounds good — flagging first since it touches the release tooling.
Activity
durvesh1992 commentedon Jun 28, 2026
Confirmed the override risk you flagged — a plain
pnpm.overridesbump tojs-yaml@^4will break the changeset tooling at runtime:read-yaml-file/index.js(line 8) callsyaml.safeLoad(...), and itspackage.jsonpinsjs-yaml: ^3.6.1.safeLoad(it'sloadnow), so forcing 4.x makesread-yaml-filethrowyaml.safeLoad is not a functionwhenever@manypkg/get-packagesreads YAML (e.g.pnpm-workspace.yaml) — which@changesets/clidoes on basically every invocation.So an override alone isn't safe here. Viable paths:
pnpm patch read-yaml-file→ changesafeLoad→load(andsafeDump→dumpif present), then add thejs-yaml: ^4.2.0override. Small, self-contained, fully under this repo's control.read-yaml-file/@manypkg/get-packages/@changesets/clito versions that use js-yaml 4.x (if available), then drop the override.Given the advisory's low practical risk here (changeset YAML is locally authored, not untrusted), option 1 is probably the cleanest stopgap. Happy to put up the
pnpm patchversion if that direction sounds good — flagging first since it touches the release tooling.fix(deps): lift read-yaml-file to 2.x to clear js-yaml CVE-2026-53550 (…