0

joshua.hu · 19d · discuss

A follow-up: npm 12 imports a package's .npm-extension file during npm pack --ignore-scripts, no scripts required and no flag to turn it off. The same bare Arborist runs a git dependency's extension code during npm install --ignore-scripts, and npm 10 still runs git prepare there by default. npm 12's allow-scripts list misses that same git prepare, and a hostile git ref name runs code during resolution, before any script and regardless of --ignore-scripts.