netlify-cli 26.2.0 installs local-functions-proxy binary with --omit=optional
[email protected] still installs the @netlify/[email protected] platform binary when npm is invoked with --omit=optional.
Reproduction on Node 24.18.0 / npm 11.16.0:
npm i -g --omit=optional [email protected]
find /usr/local/lib/node_modules/netlify-cli -path '*local-functions-proxy*' -print
The result includes:
/usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-linux-x64/bin/local-functions-proxy
The dependency chain is netlify-cli -> @netlify/[email protected] -> @netlify/[email protected]. Security scanners flag the bundled Go binary, including fixable critical findings such as CVE-2023-24538, CVE-2023-24540, CVE-2024-24790, and CVE-2025-68121.
Removing the platform package after installation leaves netlify --version, netlify build --help, and netlify deploy --help working, but intentionally disables local functions and netlify dev.
Could the platform binaries be rebuilt against supported Go dependencies, and could --omit=optional be made to omit them as expected? HolyCode is temporarily removing every local-functions-proxy-* package from its image and documenting remote build/deploy support only.