fix(deps): raise the node-forge override to 1.4.3

node-forge 1.4.2 is in the range of four advisories published on
2026-11-10 (GHSA-w4xr-hqv8-ch44, GHSA-6cv4-p8m7-4r25, GHSA-j8rw-jp99-435v,
GHSA-6889-vf6x-f3g5, all <=1.4.2), fixed in 1.4.3. The existing
version-scoped override is raised rather than doubled; the single copy,
reached through @expo/cli and @expo/code-signing-certificates (build and
dev server only), moves from 1.4.2 to 1.4.3. The smoke guard follows the
new floor and fails on the previous tree.

Fixes #221

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
le king fu 2026-11-18 20:03:52 -05:00
commit 0b064de2e2
3 changed files with 10 additions and 9 deletions

6
package-lock.json generated
View file

@ -9249,9 +9249,9 @@
}
},
"node_modules/node-forge": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.2.tgz",
"integrity": "sha512-rRtAR5XLJ8gCKd9du4qrKAsgCG1ObGP4gLeNJMa4vYSeq4bmBMOJk5IHkrviBV0q7uoAJlVd8HEQYQSVUb4FGQ==",
"version": "1.4.3",
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.3.tgz",
"integrity": "sha512-P6wzfh6t70avmV8FrVEAd/36sOPJQ+hkaJVX1Laap9J/77m7M0eyozDvc8SwnDf4P7MP94gwbAAo0rg3YVXT+g==",
"license": "(BSD-3-Clause OR GPL-2.0)",
"engines": {
"node": ">= 6.13.0"

View file

@ -81,7 +81,7 @@
"brace-expansion@^5.0.0": "^5.0.12",
"@babel/core": "^7.29.6",
"browserslist": "^4.28.7",
"node-forge@^1.0.0": "^1.4.1",
"node-forge@^1.0.0": "^1.4.3",
"glob@^13.0.0": "^14.0.2",
"@expo/cli": {
"compression": "^1.8.2",

View file

@ -740,10 +740,11 @@ check('every installed brace-expansion copy is at or above its major floor', ()
);
});
// --- Override floors (#123, #170) ---
// --- Override floors (#123, #170, #221) ---
// undici: scoped to @expo/cli; 6.29.1 closes five advisories (#170).
// node-forge: version-scoped to major 1, a single copy shared by @expo/cli and
// @expo/code-signing-certificates; 1.4.1 leaves GHSA-86w9 (<=1.4.0, #123).
// @expo/code-signing-certificates; 1.4.3 closes GHSA-w4xr, GHSA-6cv4,
// GHSA-j8rw and GHSA-6889 (<=1.4.2, #221), after GHSA-86w9 (<=1.4.0, #123).
// Any other major is unexpected and must fail loudly.
check('every installed undici copy is >= 6.29.1', () => {
@ -757,14 +758,14 @@ check('every installed undici copy is >= 6.29.1', () => {
);
});
check('every installed node-forge copy is 1.x and >= 1.4.1', () => {
check('every installed node-forge copy is 1.x and >= 1.4.3', () => {
const copies = installedCopies('node-forge');
assert.ok(copies.length > 0, 'node-forge is not installed');
const strays = copies.filter((c) => majorOf(c.version) !== '1' || !versionAtLeast(c.version, '1.4.1'));
const strays = copies.filter((c) => majorOf(c.version) !== '1' || !versionAtLeast(c.version, '1.4.3'));
assert.deepEqual(
strays.map((c) => `${c.version} at ${path.relative(ROOT, c.dir)}`),
[],
'node-forge must be 1.x and >= 1.4.1'
'node-forge must be 1.x and >= 1.4.3'
);
});