Skip to content

[agent] chore(deps): bump js-yaml to fix prototype pollution (GHSA-mh29-5h37-fv8m)#723

Draft
github-actions[bot] wants to merge 1 commit intomainfrom
fix/js-yaml-prototype-pollution-940455e6293f3875
Draft

[agent] chore(deps): bump js-yaml to fix prototype pollution (GHSA-mh29-5h37-fv8m)#723
github-actions[bot] wants to merge 1 commit intomainfrom
fix/js-yaml-prototype-pollution-940455e6293f3875

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 1, 2026

Summary

Addresses Dependabot alerts #85 and #86CVE-2025-64718 / GHSA-mh29-5h37-fv8m: prototype pollution via __proto__ in js-yaml's merge (<<) operator.

Changes

package-lock.json — lockfile updates

Location Before After
node_modules/js-yaml (root hoisted, 3.x) 3.14.1 3.14.2
node_modules/mocha/node_modules/js-yaml 4.0.0 4.1.1
node_modules/@bcherny/json-schema-ref-parser/node_modules/js-yaml 4.1.0 4.1.1
node_modules/mongodb-schema/node_modules/js-yaml 4.1.0 4.1.1

package.json — npm overrides

Three packages needed overrides because their own declared ranges could not self-resolve to a patched version without lockfile intervention:

  • mocha@8.4.0 pins js-yaml to the exact version 4.0.0 — there is no manifest bump possible without upgrading mocha major versions. Override forces 4.1.1.
  • @bcherny/json-schema-ref-parser declares ^4.1.0 (allows 4.1.1 in theory, but the lockfile was pinned to 4.1.0). Override ensures future npm install runs stay on a safe version.
  • mongodb-schema similarly declared ^4.1.0. Override ensures future npm install runs stay on a safe version.

The 3.x hoisted instance was updated directly in the lockfile (all consumers declare ^3.x ranges that allow 3.14.2).

Security advisory

Generated by Dependabot remediation agent · ● 1.7M ·

…fv8m)

- Update root-level hoisted js-yaml from 3.14.1 to 3.14.2
- Update mocha nested js-yaml from 4.0.0 to 4.1.1 via npm overrides
- Update @bcherny/json-schema-ref-parser nested js-yaml from 4.1.0 to 4.1.1 via npm overrides
- Update mongodb-schema nested js-yaml from 4.1.0 to 4.1.1 via npm overrides

Fixes Dependabot alerts #85 and #86 (CVE-2025-64718).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants