top | item 46267341

(no title)

Yasuraka | 2 months ago

> Running npm install is not negligence.

I beg to differ and look forward to running my own fiefdom where interpreter/JIT languages are banned in all forms.

discuss

order

staticassertion|2 months ago

It has nothing to do with interpreters or JIT, it has nothing to do with npm at all. All package managers have the insane security model of "arbitrary code execution with no constraints".

Yasuraka|2 months ago

It just so happens that all of those languages share the worst design points, such as the need for a package manager at all and the classic "eval and equivalents run arbitrary code".

>All package managers have the insane security model of "arbitrary code execution with no constraints".

Not all of them, just the most popular ones for these highly sophisticated, well thought-out bunch of absolute languages.

seniorsassycat|2 months ago

I tend to agree but think npms post install hook is a degree worse. Triggering during install, silently because npm didn't like someone using the feature to ask for donations, is worse than requiring you to load and run the package code.

sethaurus|2 months ago

Do you really mean this literally? Even the Linux kernel contains tens of thousands of lines of Python, and more lines of shell. Is that undesirable?