Skip to content

chore: Replace lavamoat with @lavamoat/node#3710

Draft
Mrtenz wants to merge 10 commits intomainfrom
mrtenz/lavamoat/node
Draft

chore: Replace lavamoat with @lavamoat/node#3710
Mrtenz wants to merge 10 commits intomainfrom
mrtenz/lavamoat/node

Conversation

@Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Oct 28, 2025

@lavamoat/node is not production-ready yet, just testing.

Note

Switches from lavamoat to @lavamoat/node and refreshes the lockfile to reflect new/transitive dependencies and version bumps.

  • Build/Tooling:
    • Replace lavamoat with @lavamoat/node in packages/snaps-execution-environments/package.json devDependencies and workspace deps.
    • Update yarn.lock to add @lavamoat/node and its transitive deps (@endo/*, lavamoat-core@^17, terminal-link, loggerr, etc.) and remove lavamoat and its native build-related deps.
    • Refresh lockfile versions for several packages (notably @babel/*, @jridgewell/*, @types/node, chalk, supports-color) aligning with new dependency graph.

Written by Cursor Bugbot for commit 4d21bc1. This will update automatically on new commits. Configure here.

@Mrtenz Mrtenz requested a review from a team as a code owner October 28, 2025 11:05
@socket-security
Copy link

socket-security bot commented Oct 28, 2025

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​lavamoat/​node@​1.0.07810010094100

View full report

@socket-security
Copy link

socket-security bot commented Oct 28, 2025

Caution

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
Action Severity Alert  (click "▶" to expand/collapse)
Block High
Publisher changed: npm @endo/compartment-mapper is now published by boneskull

Author: boneskull

From: ?npm/@lavamoat/node@1.0.0npm/@endo/compartment-mapper@2.0.0

ℹ Read more on: This package | This alert | What is unstable ownership?

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: Try to reduce the number of authors you depend on to reduce the risk to malicious actors gaining access to your supply chain. Packages should remove inactive collaborators with publishing rights from packages on npm.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@endo/compartment-mapper@2.0.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.

Block High
Publisher changed: npm @endo/evasive-transform is now published by boneskull

Author: boneskull

From: ?npm/@lavamoat/node@1.0.0npm/@endo/evasive-transform@2.1.0

ℹ Read more on: This package | This alert | What is unstable ownership?

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: Try to reduce the number of authors you depend on to reduce the risk to malicious actors gaining access to your supply chain. Packages should remove inactive collaborators with publishing rights from packages on npm.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@endo/evasive-transform@2.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.

Block High
Publisher changed: npm @endo/module-source is now published by boneskull

Author: boneskull

From: ?npm/@lavamoat/node@1.0.0npm/@endo/module-source@1.4.0

ℹ Read more on: This package | This alert | What is unstable ownership?

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: Try to reduce the number of authors you depend on to reduce the risk to malicious actors gaining access to your supply chain. Packages should remove inactive collaborators with publishing rights from packages on npm.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@endo/module-source@1.4.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.

Block High
Publisher changed: npm @endo/zip is now published by boneskull

Author: boneskull

From: ?npm/@lavamoat/node@1.0.0npm/@endo/zip@1.1.0

ℹ Read more on: This package | This alert | What is unstable ownership?

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: Try to reduce the number of authors you depend on to reduce the risk to malicious actors gaining access to your supply chain. Packages should remove inactive collaborators with publishing rights from packages on npm.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@endo/zip@1.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.

Block Medium
Network access: npm @types/node in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: ?npm/jest@29.5.0npm/@types/node@22.18.12

ℹ 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/@types/node@22.18.12. 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.

Block Medium
Network access: npm agentkeepalive in module http

Module: http

Location: Package overview

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/agentkeepalive@4.2.1

ℹ 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/agentkeepalive@4.2.1. 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.

Block Medium
Network access: npm agentkeepalive in module https

Module: https

Location: Package overview

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/agentkeepalive@4.2.1

ℹ 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/agentkeepalive@4.2.1. 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.

Block Low
Publisher changed: npm @endo/compartment-mapper is now published by boneskull instead of kriskowal

New Author: boneskull

Previous Author: kriskowal

From: ?npm/@lavamoat/node@1.0.0npm/@endo/compartment-mapper@2.0.0

ℹ Read more on: This package | This alert | What is new author?

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: Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@endo/compartment-mapper@2.0.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.

Block Low
Publisher changed: npm @endo/evasive-transform is now published by boneskull instead of kriskowal

New Author: boneskull

Previous Author: kriskowal

From: ?npm/@lavamoat/node@1.0.0npm/@endo/evasive-transform@2.1.0

ℹ Read more on: This package | This alert | What is new author?

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: Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@endo/evasive-transform@2.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.

Block Low
Publisher changed: npm @endo/module-source is now published by boneskull instead of kriskowal

New Author: boneskull

Previous Author: kriskowal

From: ?npm/@lavamoat/node@1.0.0npm/@endo/module-source@1.4.0

ℹ Read more on: This package | This alert | What is new author?

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: Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@endo/module-source@1.4.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.

Block Low
Publisher changed: npm @endo/zip is now published by boneskull instead of kriskowal

New Author: boneskull

Previous Author: kriskowal

From: ?npm/@lavamoat/node@1.0.0npm/@endo/zip@1.1.0

ℹ Read more on: This package | This alert | What is new author?

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: Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@endo/zip@1.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.

Block Low
Publisher changed: npm @npmcli/move-file is now published by gar instead of nlf

New Author: gar

Previous Author: nlf

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/@npmcli/move-file@2.0.0

ℹ Read more on: This package | This alert | What is new author?

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: Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@npmcli/move-file@2.0.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.

Block Low
Publisher changed: npm npmlog is now published by lukekarrys instead of gar

New Author: lukekarrys

Previous Author: gar

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/npmlog@6.0.2

ℹ Read more on: This package | This alert | What is new author?

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: Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/npmlog@6.0.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.

Block Low
Publisher changed: npm ssri is now published by gar instead of nlf

New Author: gar

Previous Author: nlf

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/ssri@9.0.0

ℹ Read more on: This package | This alert | What is new author?

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: Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/ssri@9.0.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.

Block Low
Publisher changed: npm supports-hyperlinks is now published by sindresorhus instead of jamestalmage

New Author: sindresorhus

Previous Author: jamestalmage

From: ?npm/@lavamoat/node@1.0.0npm/supports-hyperlinks@2.3.0

ℹ Read more on: This package | This alert | What is new author?

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: Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/supports-hyperlinks@2.3.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.

Block Low
Publisher changed: npm unique-slug is now published by zkat instead of iarna

New Author: zkat

Previous Author: iarna

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/unique-slug@2.0.2

ℹ Read more on: This package | This alert | What is new author?

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: Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/unique-slug@2.0.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 Medium
Deprecated by its maintainer: npm @npmcli/move-file

Reason: This functionality has been moved to @npmcli/fs

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/@npmcli/move-file@2.0.0

ℹ Read more on: This package | This alert | What is a deprecated package?

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: Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@npmcli/move-file@2.0.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 Medium
Deprecated by its maintainer: npm are-we-there-yet

Reason: This package is no longer supported.

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/are-we-there-yet@3.0.0

ℹ Read more on: This package | This alert | What is a deprecated package?

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: Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/are-we-there-yet@3.0.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 Medium
Deprecated by its maintainer: npm gauge

Reason: This package is no longer supported.

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/gauge@4.0.4

ℹ Read more on: This package | This alert | What is a deprecated package?

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: Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/gauge@4.0.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 Medium
Deprecated by its maintainer: npm npmlog

Reason: This package is no longer supported.

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/npmlog@6.0.2

ℹ Read more on: This package | This alert | What is a deprecated package?

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: Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/npmlog@6.0.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 Medium
Deprecated by its maintainer: npm rimraf

Reason: Rimraf versions prior to v4 are no longer supported

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/rimraf@3.0.2

ℹ Read more on: This package | This alert | What is a deprecated package?

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: Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/rimraf@3.0.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 Medium
Deprecated by its maintainer: npm tar

Reason: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/tar@6.2.1

ℹ Read more on: This package | This alert | What is a deprecated package?

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: Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/tar@6.2.1. 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
Low CVE: npm @tootallnate/once vulnerable to Incorrect Control Flow Scoping

CVE: GHSA-vpq2-c234-7xj6 @tootallnate/once vulnerable to Incorrect Control Flow Scoping (LOW)

Affected versions: < 3.0.1

Patched version: 3.0.1

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/@tootallnate/once@2.0.0

ℹ Read more on: This package | This alert | What is a mild CVE?

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: Remove or replace dependencies that include known low severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@tootallnate/once@2.0.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
Potential code anomaly (AI signal): npm chownr is 100.0% likely to have a medium risk anomaly

Notes: The code represents a standard, well-scoped recursive ownership utility with deliberate cross-version compatibility. No evidence of malicious activity, data leakage, or external communications. The main risk is the potential for broad permission changes if invoked with untrusted uid/gid values; usage should be restricted to trusted contexts.

Confidence: 1.00

Severity: 0.60

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/chownr@2.0.0

ℹ 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/chownr@2.0.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
Potential code anomaly (AI signal): npm http-proxy-agent is 100.0% likely to have a medium risk anomaly

Notes: The code fragment is a conventional HTTP proxy agent component handling optional proxy authentication and dynamic header adjustments. There is no evidence of malicious activity, data exfiltration, or supply-chain abuse within this fragment. The main concerns relate to reliance on internal Node.js fields (version fragility) and potential in-memory exposure of credentials, but these are standard operational caveats for proxy clients and do not indicate malice.

Confidence: 1.00

Severity: 0.60

From: ?npm/rollup@2.80.0npm/crypto-browserify@3.12.1npm/@jest/expect@29.5.0npm/jest@29.5.0npm/webpack-dev-server@5.2.2npm/fork-ts-checker-webpack-plugin@9.0.2npm/tsx@4.20.3npm/vite@6.4.1npm/playwright@1.57.0npm/http-proxy-agent@5.0.0

ℹ 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/http-proxy-agent@5.0.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.

See 2 more rows in the dashboard

View full report

@Mrtenz Mrtenz marked this pull request as draft October 28, 2025 11:07
@codecov
Copy link

codecov bot commented Oct 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.55%. Comparing base (ed44a88) to head (a9d94fd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3710   +/-   ##
=======================================
  Coverage   98.55%   98.55%           
=======================================
  Files         425      425           
  Lines       12358    12358           
  Branches     1935     1935           
=======================================
  Hits        12180    12180           
  Misses        178      178           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Mrtenz Mrtenz force-pushed the mrtenz/lavamoat/node branch 4 times, most recently from 4c5d7db to a8add1c Compare March 23, 2026 12:11

// TODO: Replace imports below with ESM imports.
// eslint-disable-next-line no-shadow
const require = createRequire(import.meta.url);
Copy link

Choose a reason for hiding this comment

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

oops. That's bypassing lavamoat. you can leave it as cjs, we support both, but here you're endowing the program with capability to use node's own require.

Comment on lines +5 to +11
import { createRequire } from 'node:module';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';

// TODO: Replace imports below with ESM imports.
// eslint-disable-next-line no-shadow
const require = createRequire(import.meta.url);
Copy link

Choose a reason for hiding this comment

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

Suggested change
import { createRequire } from 'node:module';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
// TODO: Replace imports below with ESM imports.
// eslint-disable-next-line no-shadow
const require = createRequire(import.meta.url);

@Mrtenz Mrtenz force-pushed the mrtenz/lavamoat/node branch from d18a619 to d65ff2f Compare March 23, 2026 15:54
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