fix(security): update runtime baseline and vulnerable dependencies
Require patched Node.js releases and refresh affected application and build dependencies. Align installation requirements, startup checks, and release workflows with the security baseline.
This commit is contained in:
30 files changed
+420
-342
No files matched your search
@@ -1,9 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
const SUPPORTED_NODE_RANGE = '>=24';
|
||||
const SUPPORTED_NODE_RANGE = '^24.22.1 || >=26.12.1';
|
||||
|
||||
function parseNodeVersion(version) {
|
||||
const match = /^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(version);
|
||||
const match = /^(\d+)\.(\d+)\.(\d+)(?:\+[0-9A-Za-z.-]+)?$/.exec(version);
|
||||
return match ? match.slice(1, 4).map(Number) : null;
|
||||
}
|
||||
|
||||
@@ -11,8 +11,10 @@ function isSupportedNodeVersion(version) {
|
||||
const actual = parseNodeVersion(version);
|
||||
if (!actual) return false;
|
||||
|
||||
const [major] = actual;
|
||||
return major >= 24;
|
||||
const [major, minor, patch] = actual;
|
||||
if (major === 24) return minor > 22 || (minor === 22 && patch >= 1);
|
||||
if (major === 26) return minor > 12 || (minor === 12 && patch >= 1);
|
||||
return major > 26;
|
||||
}
|
||||
|
||||
if (require.main === module && !isSupportedNodeVersion(process.versions.node)) {
|
||||
|
||||
Reference in new issue
Block a user