9 ms·
GitHub Advisory Database now powers NPM audit
- valkum 5y agolooking at the latest illissued lodash CVE they seem to deliver CVEs that are withdrawn in GH Advisory Database
- ethomson 5y agoProduct Manager for npm here. That was correct. As part of our integration, we were not excluding withdrawn advisories. We've since corrected this. Apologies!
- weissed 5y agonpm audit npm ERR! code ENOAUDIT npm ERR! audit Your configured registry (https://registry.npmjs.org/ https://registry.npmjs.org/) may not support audit requests, or the audit endpoint may be temporarily unavailable. looks like everyone's trying it :)
- kronin 5y agoOr NPM is having issues ;-) https://status.npmjs.org/ https://status.npmjs.org/
- sahkopoyta 5y agothat’s the point :-)
- atmartins 5y agoI ran into this today. Delete node_modules and package-lock.json then install and run audit again.
- samcgraw 5y agoDan Abramov has an interesting take on npm audit (https://overreacted.io/npm-audit-broken-by-design https://overreacted.io/npm-audit-broken-by-design). Scanning through the vulns on GitHub Advisory Database, it looks like it still contains many that DA brought up as unhelpful at best (e.g. “Regular Expression Denial of Service”).
- seniorsassycat 5y agoI've used esbuild's metadata file to filter npm audit's report and only warn for packages with files that are required at runtime. It's great at filtering out denial of service in the command line parser of my web server.
- mylesborins 5y agoThis sounds SUPER interesting. Do you have an example of this? I wonder if this is something we could adopt in npm itself
- seniorsassycat 5y agohttps://github.com/everett1992/npm-esbuild-audit https://github.com/everett1992/npm-esbuild-audit
- DeepYogurt 5y agoI for one do like to know when I have a denial of service vector in my app.
- vorticalbox 5y agoJust because there is a cve in a dependancie does not mean its exploitable in context of your application. Say there was a regex dos in nodemon, I only use this for local development and has no effect on my main application. Point is npm audit is an advisory as it doesn't know the context in which it used.
- eranation 5y agoIs it me or dependabot has a bit higher rate of false positives? Does this mean that now npm audit === dependabot then?
- hn_throwaway_99 5y agoNPM is down at the moment, so ...
- AHappyCamper 5y agoIf Microsoft owns Github, then doesn't that Microsoft now controls all of npm audit?
- Spivak 5y agoMicrosoft controls all of NPM since NPM is owned by Github. https://github.blog/2020-03-16-npm-is-joining-github/ https://github.blog/2020-03-16-npm-is-joining-github/
- AHappyCamper 5y agoEhhhh...... that just makes me feel so uneasy. Things like npm should ideally be maintained by the community or its own organisation. It's too tempting for a big corp like Microsoft to add their own little bits to listed packages here and there. :\\\\\\
- Vinnl 5y agoIt was maintained by a separate (VC-funded) organisation. That got sold to GitHub/Microsoft.
- louissm_it 5y agoWeird, it's breaking Vercel builds too.
- AkshitGarg 5y agoThat might be unrelated to the audit database change as NPM is currently having a service outage. https://status.npmjs.org/incidents/7pqfqvkwvb58 https://status.npmjs.org/incidents/7pqfqvkwvb58
- louissm_it 5y agoProbably yeah :) The builds fail at the "npm audit" command, so I incorrectly made the link.
- mirekrusin 5y agoThey "own" my workplace as well. My editor. My programming language. It starts to look bad. And yes, we have major deployment night and npm is offline, nice.
- efitz 5y agoI wish there was equivalent functionality built into PIP.
- asiachick 5y agoI kinda think I wish there was a bigger cost to dependencies such that adding one hurt your project more than it currently does. for example what if node added one second of startup time per module including nested modules. I'm not suggesting they actually do that but it would be interesting to see if and how it changed behavior of adding so many dependencies. maybe npm could charge for every dependency over 10. Again I'm not suggesting they actually do this, just wondering if behavior would change
- anaganisk 5y agoHow long before Github becomes Azure Codespace, NPM becomes Azure packages And nodejs/typescript becomes AzureScript.