…remove node-forge (#41288)
## **Description**
I initially wrote this to fix a node-forge audit error, but someone else
got a resolution fix in first.
This PR updates mockttp and webpack-dev-server, which eliminates
node-forge entirely.
## **Changelog**
CHANGELOG entry: null
<!--## **Related issues**
## **Manual testing steps**
## **Screenshots/Recordings**
## **Pre-merge author checklist**
## **Pre-merge reviewer checklist**
[skip-e2e]-->
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Dependency upgrades and Lavamoat policy regeneration may affect
dev-server/test tooling and bundling behavior, though changes are
largely config/third-party updates rather than app logic.
>
> **Overview**
> Resolves the `node-forge` audit finding by **upgrading `mockttp` to
`^4.2.3` and `webpack-dev-server` to `^5.2.3`**, and removing the
explicit `node-forge` entry from `package.json`.
>
> Regenerates multiple Lavamoat `policy.json` files to reflect the new
dependency graphs (notably shifting `async-mutex` allowances to
`mockttp>async-mutex`, adding new `@peculiar/x509` chains for `mockttp`,
and updating some `webpack-dev-server` builtin module references).
Updates the Jest setup helper to polyfill `crypto.randomUUID` when
missing in the test environment.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
635717d. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com>
Description
I initially wrote this to fix a node-forge audit error, but someone else
got a resolution fix in first.
This PR updates mockttp and webpack-dev-server, which eliminates
node-forge entirely.
Changelog
CHANGELOG entry: null
Note
Medium Risk
Dependency upgrades and Lavamoat policy regeneration may affect
dev-server/test tooling and bundling behavior, though changes are
largely config/third-party updates rather than app logic.
Overview
Resolves the
node-forgeaudit finding by upgradingmockttpto^4.2.3andwebpack-dev-serverto^5.2.3, and removing theexplicit
node-forgeentry frompackage.json.Regenerates multiple Lavamoat
policy.jsonfiles to reflect the newdependency graphs (notably shifting
async-mutexallowances tomockttp>async-mutex, adding new@peculiar/x509chains formockttp,and updating some
webpack-dev-serverbuiltin module references).Updates the Jest setup helper to polyfill
crypto.randomUUIDwhenmissing in the test environment.
Written by Cursor
Bugbot for commit
635717d. This will update automatically
on new commits. Configure
here.
Co-authored-by: metamaskbot metamaskbot@users.noreply.github.com 49f46cd