Skip to content

chore: migrate src tests from jest to vitest - #312

Merged
cryptodev-2s merged 3 commits into
chore/migrate-to-oxlintfrom
chore/migrate-jest-to-vitest
Nov 17, 2026
Merged

cryptodev-2s merged 3 commits into
chore/migrate-to-oxlintfrom
chore/migrate-jest-to-vitest

Conversation

@cryptodev-2s

@cryptodev-2s cryptodev-2s commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Swaps jest for vitest in src, and since coverage moves to v8 the lines and statements thresholds were reset slightly.


Note

Low Risk
Test-runner and dependency swap only; production src behavior is unchanged, with coverage thresholds preserved at similar levels.

Overview
Replaces Jest with Vitest for all src/**/*.test.ts tests: deletes jest.config.js, adds vitest.config.mts (2500ms timeout, mock reset/restore, coverage via v8 with autoUpdate thresholds slightly retuned from the old babel-based gate), and updates package.json scripts to vitest run --coverage plus vitest --watch while dropping Jest-related devDependencies and jest-it-up.

Test files now import describe / expect / it (and vi for mocks) from vitest instead of relying on Jest globals; mock usage is migrated from jest.fn() to vi.fn(). oxlint-suppressions.json is pruned for removed Jest config and Jest-era test lint suppressions.

Reviewed by Cursor Bugbot for commit 89a5a48. Bugbot is set up for automated code reviews on this repo. Configure here.

@socket-security

socket-security Bot commented Nov 11, 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
Added@​vitest/​coverage-v8@​5.1.0991007998100
Addedvitest@​5.1.0981007998100
Addedvite@​8.3.8991008298100

View full report

@socket-security

socket-security Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

MetaMask internal reviewing guidelines:

  • Do not ignore-all
  • Each alert has instructions on how to review if you don't know what it means. If lost, ask your Security Liaison or the supply-chain group
  • Copy-paste ignore lines for specific packages or a group of one kind with a note on what research you did to deem it safe.
    @SocketSecurity ignore npm/PACKAGE@VERSION
Priority Alert  (click "▶" to expand/collapse) Action
Low priority
Network access: npm @emnapi/core in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/@emnapi/core@2.0.0-beta.2

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@emnapi/core@2.0.0-beta.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Network access: npm @tybys/wasm-util in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/@tybys/wasm-util@0.10.4

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@tybys/wasm-util@0.10.4. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Network access: npm vitest in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: package.json → npm/vitest@5.1.0

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/vitest@5.1.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Potential code anomaly (AI signal): npm @napi-rs/wasm-runtime is 95.0% likely to have a medium risk anomaly

Notes: The excerpts primarily implement bundled in-memory filesystem, stream, glob, and snapshot utilities and show no evidence of malware, credential theft, or network exfiltration. A security concern exists in toMatcher(): non-string pattern-array entries are interpolated into new Function() source, creating a code-injection risk if attacker-controlled objects reach this API. Severity is moderate and depends on whether untrusted input can supply matcher patterns; Math.random() is used only for temporary-directory name generation.

Confidence: 0.95

Severity: 0.55

From: package.json → npm/vite@8.3.8 → npm/@napi-rs/wasm-runtime@1.2.6

ℹ Read more on: This package | This alert | What is an AI-detected potential code anomaly?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system found a low-risk anomaly in this package. It may still be fine to use, but you should check that it is safe before proceeding.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@napi-rs/wasm-runtime@1.2.6. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Potential code anomaly (AI signal): npm @napi-rs/wasm-runtime is 96.0% likely to have a medium risk anomaly

Notes: A worker-style filesystem RPC and serialization pathway accepts attacker-controlled messages to invoke arbitrary fs properties and select and call fs[type], coupled with deserialization or prototype restoration that mutates Error prototypes or uses dynamic error constructors. If the message channel is untrusted, this enables unintended filesystem operations and manipulation of error objects, creating security risks from prototype pollution and unbounded invocation.

Confidence: 0.96

Severity: 0.55

From: package.json → npm/vite@8.3.8 → npm/@napi-rs/wasm-runtime@1.2.6

ℹ Read more on: This package | This alert | What is an AI-detected potential code anomaly?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system found a low-risk anomaly in this package. It may still be fine to use, but you should check that it is safe before proceeding.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@napi-rs/wasm-runtime@1.2.6. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Potential code anomaly (AI signal): npm @tybys/wasm-util is 65.0% likely to have a medium risk anomaly

Notes: No direct evidence of intentional malware, obfuscation-based payload hiding, or covert network exfiltration in this fragment. The primary security concerns are design/capability risks typical of WASI runtimes: executing externally provided WASM, high-impact filesystem access via injected fs/preopens, environment-variable exposure to the guest, possible host termination via proc_exit, and non-malicious operational risks (busy-wait timer handling and window.prompt stdin blocking; weak RNG fallback to Math.random). Risk is therefore configuration- and trust-boundary-dependent rather than a confirmed implant.

Confidence: 0.65

Severity: 0.52

From: package.json → npm/vite@8.3.8 → npm/@tybys/wasm-util@0.10.4

ℹ Read more on: This package | This alert | What is an AI-detected potential code anomaly?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system found a low-risk anomaly in this package. It may still be fine to use, but you should check that it is safe before proceeding.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@tybys/wasm-util@0.10.4. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm @tybys/wasm-util

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/@tybys/wasm-util@0.10.4

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@tybys/wasm-util@0.10.4. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm @tybys/wasm-util reads NODE_ENV

Env Vars: NODE_ENV

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/@tybys/wasm-util@0.10.4

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@tybys/wasm-util@0.10.4. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm @tybys/wasm-util reads NODE_DEBUG_NATIVE

Env Vars: NODE_DEBUG_NATIVE

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/@tybys/wasm-util@0.10.4

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@tybys/wasm-util@0.10.4. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm @vitest/coverage-v8 reads NODE_V8_COVERAGE

Env Vars: NODE_V8_COVERAGE

Location: Package overview

From: package.json → npm/@vitest/coverage-v8@5.1.0

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@vitest/coverage-v8@5.1.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Potential code anomaly (AI signal): npm es-module-lexer is 74.0% likely to have a medium risk anomaly

Notes: A WebAssembly-backed parser wrapper (package/dist/lexer.js) executes substrings extracted from untrusted input using (0, eval) during parsing, enabling arbitrary JavaScript execution if attacker-controlled data reaches the eval path. The threat also includes potential sensitive data leakage through error messages. Disable parse() on untrusted input or sandbox/replace builds to mitigate this risk.

Confidence: 0.74

Severity: 0.78

From: package.json → npm/vitest@5.1.0 → npm/es-module-lexer@2.3.2

ℹ Read more on: This package | This alert | What is an AI-detected potential code anomaly?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system found a low-risk anomaly in this package. It may still be fine to use, but you should check that it is safe before proceeding.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/es-module-lexer@2.3.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Potential code anomaly (AI signal): npm es-module-lexer is 70.0% likely to have a medium risk anomaly

Notes: A WASM-backed parser wrapper copies caller input into WASM memory and conditionally executes eval() on substrings that resemble quoted literals, creating a potential code-execution risk in the calling process. Error messages may include slices of input, increasing the chance of sensitive data exposure; the embedded WASM payload is opaque and could contain additional, unseen behaviors.

Confidence: 0.70

Severity: 0.70

From: package.json → npm/vitest@5.1.0 → npm/es-module-lexer@2.3.2

ℹ Read more on: This package | This alert | What is an AI-detected potential code anomaly?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system found a low-risk anomaly in this package. It may still be fine to use, but you should check that it is safe before proceeding.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/es-module-lexer@2.3.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm rolldown reads NAPI_RS_NATIVE_LIBRARY_PATH

Env Vars: NAPI_RS_NATIVE_LIBRARY_PATH

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/rolldown@1.2.19

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/rolldown@1.2.19. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm rolldown

Env Vars: NAPI_RS_ENFORCE_VERSION_CHECK

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/rolldown@1.2.19

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/rolldown@1.2.19. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm rolldown reads NAPI_RS_WASI_FLAVOR

Env Vars: NAPI_RS_WASI_FLAVOR

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/rolldown@1.2.19

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/rolldown@1.2.19. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm rolldown reads NAPI_RS_FORCE_WASI

Env Vars: NAPI_RS_FORCE_WASI

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/rolldown@1.2.19

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/rolldown@1.2.19. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm rolldown

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/rolldown@1.2.19

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/rolldown@1.2.19. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm rolldown reads NODE_ENV

Env Vars: NODE_ENV

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/rolldown@1.2.19

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/rolldown@1.2.19. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm rolldown reads CONSOLA_LEVEL

Env Vars: CONSOLA_LEVEL

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/rolldown@1.2.19

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/rolldown@1.2.19. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm rolldown reads ROLLDOWN_TEST

Env Vars: ROLLDOWN_TEST

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/rolldown@1.2.19

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/rolldown@1.2.19. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm tinyglobby reads TINYGLOBBY_DEBUG

Env Vars: TINYGLOBBY_DEBUG

Location: Package overview

From: package.json → npm/vitest@5.1.0 → npm/vite@8.3.8 → npm/tinyglobby@0.2.17

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/tinyglobby@0.2.17. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm vitest reads NODE_ENV

Env Vars: NODE_ENV

Location: Package overview

From: package.json → npm/vitest@5.1.0

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/vitest@5.1.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Low priority
Environment variable access: npm @rolldown/binding-wasm32-wasi

Location: Package overview

From: package.json → npm/vite@8.3.8 → npm/@rolldown/binding-wasm32-wasi@1.2.19

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@rolldown/binding-wasm32-wasi@1.2.19. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
See 2 more rows in the dashboard

Ignoring alerts on:

  • detect-libc@2.1.2
  • tinyexec@1.3.1

View full report

@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from 7cd926b to 078b0d5 Compare November 11, 2026 21:12
@cryptodev-2s
cryptodev-2s changed the base branch from main to chore/align-dependencies November 11, 2026 21:12
@cryptodev-2s
cryptodev-2s added this pull request to stack #319 November 11, 2026 21:12
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch 2 times, most recently from 9240aad to cc9dcf2 Compare November 12, 2026 10:15
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from cc9dcf2 to 964a2c2 Compare November 12, 2026 10:21
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from 964a2c2 to e978a7f Compare November 12, 2026 10:25
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from e978a7f to b29d4bf Compare November 12, 2026 10:33
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch 2 times, most recently from ca5a882 to 43c2a2c Compare November 12, 2026 18:44
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from 43c2a2c to 9811f8b Compare November 16, 2026 10:06
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch 2 times, most recently from b1d4f5d to d72d152 Compare November 16, 2026 10:25
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from d72d152 to d786e70 Compare November 16, 2026 10:34
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from d786e70 to 241e16e Compare November 16, 2026 10:49
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from 241e16e to 45f5193 Compare November 16, 2026 11:02
@cryptodev-2s
cryptodev-2s removed this pull request from stack #319 November 16, 2026 13:59
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from 45f5193 to ed17138 Compare November 16, 2026 14:00
@cryptodev-2s
cryptodev-2s changed the base branch from chore/align-dependencies to chore/migrate-to-oxlint November 16, 2026 14:00
@cryptodev-2s
cryptodev-2s added this pull request to stack #329 November 16, 2026 14:00
@cryptodev-2s cryptodev-2s self-assigned this Nov 16, 2026
@cryptodev-2s
cryptodev-2s marked this pull request as ready for review November 16, 2026 14:17
@cryptodev-2s

Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore npm/detect-libc@2.1.2
@SocketSecurity ignore npm/tinyexec@1.3.1

Both come in through vitest and vite, which we already use in other repos. The libc detection package runs system commands to tell glibc from musl, and tinyexec is the small process spawning helper from tinylibs that vitest uses.

Mrtenz
Mrtenz previously approved these changes Nov 16, 2026
@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from 11cf38b to 99764b6 Compare November 17, 2026 07:57

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 99764b6. Configure here.

Comment thread package.json
"ts-node": "^10.9.1"
"ts-node": "^10.9.1",
"vite": "^8.3.6",
"vitest": "^5.1.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Depcheck ignores omit Vitest packages

Medium Severity

vite and @vitest/coverage-v8 are added as direct dependencies but never imported, and they are missing from .depcheckrc.json ignores. yarn lint:dependencies runs depcheck, which treats both as unused and fails the lint job.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 99764b6. Configure here.

@cryptodev-2s
cryptodev-2s force-pushed the chore/migrate-jest-to-vitest branch from 6fd8ca2 to 89a5a48 Compare November 17, 2026 10:27
@cryptodev-2s
cryptodev-2s merged commit 31cfeb7 into main Nov 17, 2026
17 checks passed
@cryptodev-2s
cryptodev-2s deleted the chore/migrate-jest-to-vitest branch November 17, 2026 12:10
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