From 0b064de2e2ff0c2d3221005c2f4b125c8ae1551b Mon Sep 17 00:00:00 2001 From: le king fu Date: Wed, 18 Nov 2026 20:03:52 -0500 Subject: [PATCH] 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 --- package-lock.json | 6 +++--- package.json | 2 +- tests/smoke.test.cjs | 11 ++++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index c107758..e68da43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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" diff --git a/package.json b/package.json index 8a5c937..72b1a6a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tests/smoke.test.cjs b/tests/smoke.test.cjs index cd64232..7970097 100644 --- a/tests/smoke.test.cjs +++ b/tests/smoke.test.cjs @@ -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' ); }); -- 2.52.0