7 ms·
The HTTP imports astound me. Having little control over how bundlers fetch code randomly screams vulnerability vector. How people are okay with it is wild to me
by junon 2y ago
The HTTP imports astound me. Having little control over how bundlers fetch code randomly screams vulnerability vector. How people are okay with it is wild to me.
- ibejoeb 2y agoYou're right, of course, but there's little practical difference from doing `npm install` unless you're actually auditing the supply chain. It just automates a step.
- christophilus 2y agoThe difference is that you have a single file to audit with npm. With Deno, any file in your codebase might pull in a dependency.
- cbm-vic-20 2y agoThey should have at least have something like HTML Subresource Integrity[0], including a hash so at least changes to what comes back from the import hasn't changed. [0] https://w3c.github.io/webappsec-subresource-integrity https://w3c.github.io/webappsec-subresource-integrity
- junon 2y agoYes, though it's not enforced when it should be.