mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-16 17:09:09 +00:00
Merged as part of the v3.8.53 fix sweep (author @alirezariahi). Co-authored-by: Alireza <ali.r.riahi@gmail.com> Co-authored-by: Diego Rodrigues de Sa e Souza <diegosouza.pw@gmail.com>
16 lines
734 B
JavaScript
16 lines
734 B
JavaScript
// Execute inside the pushed image: NODE_VERSION metadata and a Dockerfile pin
|
|
// do not prove which Node binary the final runtime actually executes (#18414).
|
|
const version = process.versions.node;
|
|
const [major, minor, patch] = version.split(".").map(Number);
|
|
|
|
// Keep the security floor aligned with tests/unit/build/docker-ca-baseline.test.mjs.
|
|
// Node 26.12.1 includes the CVE-2026-111497 Brotli decoder fix.
|
|
if (major !== 26 || !(minor > 12 || (minor === 12 && patch >= 1))) {
|
|
console.error(
|
|
`Docker image runs Node ${version}; requires Node 26.12.1 or newer in the 26.x line (CVE-2026-111497).`
|
|
);
|
|
process.exit(1);
|
|
}
|
|
|
|
console.log(`Verified Docker runtime: Node ${version} (CVE-2026-111497 security floor satisfied).`);
|