Skip to content

chore(deps): upgrade yeoman-generator to 10.2.1 and yeoman-environment to 7.2.0 - #56

Merged
bgturner merged 1 commit into
masterfrom
jc/dependabots-bump-yeoman
Oct 27, 2026
Merged

bgturner merged 1 commit into
masterfrom
jc/dependabots-bump-yeoman

Conversation

@JiNexus

@JiNexus JiNexus commented Oct 27, 2026

Copy link
Copy Markdown
Member

Summary

Fixes four Dependabot alerts by upgrading the transitive simple-git chain to a patched release.

The vulnerable packages cannot be bumped directly:
yeoman-generator@8.x -> simple-git@3.36.0 -> @simple-git/argv-parser@1.1.1

simple-git@4.0.x resolves both GHSA-x6jw-m9v5-85vh / GHSA-858h-whjf-mvg5 / GHSA-g4wm-2vf7-vfgr and pulls in patched @simple-git/argv-parser@2.0.1 for GHSA-v5rq-49vh-5v5c. simple-git@4 is only used by yeoman-generator@10.x.

Advisories fixed

Advisory CVE Package Severity
GHSA-v5rq-49vh-5v5c CVE-2026-102829 @simple-git/argv-parser Critical
GHSA-x6jw-m9v5-85vh CVE-2026-102828 simple-git Critical
GHSA-858h-whjf-mvg5 CVE-2026-102827 simple-git High
GHSA-g4wm-2vf7-vfgr CVE-2026-102826 simple-git High

Changes

  • Upgrade yeoman-generator from ^8.2.2 to ^10.2.1
  • Upgrade yeoman-environment from ^6.1.0 to ^7.2.0 to keep a supported pairing
  • Regenerate package-lock.json - now resolves simple-git@4.0.2, @simple-git/argv-parser@2.0.1, and @simple-git/args-pathspec@1.0.4
  • Fix --help in app/index.js: use console.log for custom help output, since yeoman-generator's base constructor skips adapter log initialization when the help option is set

Testing

  • npm audit -> 0 vulnerabilities
  • npm install succeeds
  • node index.js --help exits 0 and prints the expected help text

Notes

  • Node requirement rises to ^22.18.0 || >=24.11.0 (required by yeoman-generator@10 / yeoman-environment@7).
  • The repo has no test script/CI test suite, so validation was manual.

Related

https://wpengine.atlassian.net/jira/software/c/projects/LOC/boards/880?selectedIssue=LOC-7219
https://wpengine.atlassian.net/jira/software/c/projects/LOC/boards/880?selectedIssue=LOC-7220

@JiNexus JiNexus self-assigned this Oct 27, 2026
@JiNexus
JiNexus requested a review from a team as a code owner October 27, 2026 16:18
@sonarqube-wp-engine-prod

Copy link
Copy Markdown

@bgturner bgturner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for doing this!

@bgturner
bgturner merged commit 70ce155 into master Oct 27, 2026
2 checks passed
@bgturner
bgturner deleted the jc/dependabots-bump-yeoman branch October 27, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants