Skip to content

fix(deps): upgrade vitest, happy-dom and simple-git (PLATENG-1687) - #175

Merged
ryanmcafee merged 5 commits into
mainfrom
fix/PLATENG-1687-critical-vulns
Nov 16, 2026
Merged

ryanmcafee merged 5 commits into
mainfrom
fix/PLATENG-1687-critical-vulns

Conversation

@ryanmcafee

@ryanmcafee ryanmcafee commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes 11 critical Socket findings in this repo's workflow test tooling (SOCKET-JUPITERONE-2274, 5066, 2272, 5047, 5048, 1852, 1984, 2487, 1869, 5062, 1920): simple-git RCE, vitest/tinypool RCE, happy-dom VM escape, tar, form-data, proxy-addr and @babel/traverse.

vitest -> 4.1 and plugin-react -> 5. happy-dom is removed because nothing uses it. Overrides pin simple-git 4, tar 7 and proxy-addr 2.0.8. A small postinstall restores the simple-git default export that @kie/mock-github calls. PR CI moves to Node 22. Separate commits fix tests broken since CS-126. Composite action interfaces are unchanged.

Story: PLATENG-1687 (epic PLATENG-1678).

ryanmcafee and others added 2 commits November 16, 2026 11:44
Closes the critical Socket findings in the repo's test tooling:
- vitest 0.31 -> ^4.1.12 (CVE-2026-47429); drops tinypool 0.5
  (CVE-2026-104848/104849). @vitest/coverage-c8 no longer exists, so
  move to @vitest/coverage-v8; --no-threads becomes
  --no-file-parallelism.
- happy-dom 6.0.4 -> ^20.14.6 (CVE-2025-61927, CVE-2024-51757); drops
  sync-request and its form-data 2.5.1 (CVE-2025-7783).
- @vitejs/plugin-react 2 -> ^5.2.0 for vite 7; resolves
  @babel/traverse 7.29 (CVE-2023-45133).
- overrides: simple-git ^4.0.2 (CVE-2026-28292, CVE-2026-102828),
  tar ^7.5.19 (CVE-2026-59873), proxy-addr ^2.0.8 (CVE-2026-90711).

@kie/mock-github still requires simple-git ^3 and calls its CJS default
export, which simple-git 4 removed; patch-package switches it to the
named simpleGit export. act-js's tar.x usage works unchanged on tar 7.

vitest 4 types need an ES2015+ lib and exports-aware resolution, so
tsconfig gains target/module/moduleResolution, explicit node types and
typescript 5.9 (the transitive 5.1 lacks WeakKey). Ignore the
tsbuildinfo that tsc -b now writes.

Co-Authored-By: Ryan McAfee - AI <ryan.mcafee+ai@jupiterone.com>
vitest 4 and @vitejs/plugin-react 5 require Node ^20.19 || >=22.12;
the PR workflow pinned Node 18.15.0.

Co-Authored-By: Ryan McAfee - AI <ryan.mcafee+ai@jupiterone.com>
@socket-security

socket-security Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​vitest/​ui@​0.31.4 ⏵ 4.1.129910075 -398 -1100
Added@​vitest/​coverage-v8@​4.1.12991007998100
Updatedvitest@​0.31.4 ⏵ 4.1.1298 +1100 +7579 +198100
Updated@​types/​node@​8.10.66 ⏵ 22.20.510010081 +394100
Updated@​vitejs/​plugin-react@​2.2.0 ⏵ 5.2.0100 +1100100 +196 +3100

View full report

@socket-security

socket-security Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

gastonyelmini
gastonyelmini previously approved these changes Nov 16, 2026
ryanmcafee and others added 3 commits November 16, 2026 11:54
…TENG-1687)

Socket blocked the previous revision:
- happy-dom 20.14.6 has GHSA-834v-8h66-3h79 (fixed in 21.0.4). Nothing
  in the repo uses happy-dom (the vitest environment is commented out),
  so remove it instead of upgrading.
- patch-package pulls jsonify, whose license metadata fails org policy.
  Replace it with bin/patch-mock-github.js, a dependency-free postinstall
  that applies the same simple-git default-export fix and fails loudly
  if @kie/mock-github changes.
- typescript 5.9.3 ships a W3C notice the license policy rejects (every
  5.x does; only a version change triggers the alert). Keep the existing
  transitive 5.1.6 and declare WeakKey, which @vitest/utils types use and
  TypeScript only added to lib.es5 in 5.2.

Co-Authored-By: Ryan McAfee - AI <ryan.mcafee+ai@jupiterone.com>
CS-126 (8b4d08f) removed the magic_url job from
frontend_runtime_application_pr and frontend_runtime_utility_pr but left
the tests asserting on it, so PR validation has failed since.

Co-Authored-By: Ryan McAfee - AI <ryan.mcafee+ai@jupiterone.com>
e2e_run pulls the public cypress/browsers image with Docker Hub
credentials from secrets.DOCKER_HUB_SRE. Tests set placeholder secrets,
so the authenticated pull fails on CI runners without a cached image and
the job produces no output. Remove container credentials when preparing
workflows for act so the image is pulled anonymously.

Co-Authored-By: Ryan McAfee - AI <ryan.mcafee+ai@jupiterone.com>
@ryanmcafee
ryanmcafee merged commit 2ec8d3d into main Nov 16, 2026
3 checks passed
@ryanmcafee
ryanmcafee deleted the fix/PLATENG-1687-critical-vulns branch November 16, 2026 19:11
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.

3 participants