Re:Malicious code in the purescript NPM installer
by akamaozu on Tuesday July 30, 2019 @01:44AM
(#20562383)
Sounds like your argument boils down to "check the source carefully", not "local modules are evil".
If the source was checked carefully, you'd notice a checked-in node_modules dir.
If you didn't check the source properly, you could install a module that seems like it'ss using a known package, but really is using its own malicious version of the global package.
The above scenario is impossible with maven, because there is no concept of local modules. Only the "global" ones will be used when you package an app. So if you check just the source code and it is safe then everything is fine.