Repository navigation
fix(deps): upgrade vitest, happy-dom and simple-git (PLATENG-1687) - #175
Merged
Merged
Conversation
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>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
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. |
gastonyelmini
previously approved these changes
Nov 16, 2026
…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>
gastonyelmini
approved these changes
Nov 16, 2026
dobregons
approved these changes
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).