<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ryan Cuff</title>
    <description>The latest articles on DEV Community by Ryan Cuff (@rjcuff).</description>
    <link>https://dev.to/rjcuff</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3889718%2F2dbc192e-28de-44d4-9c64-5cf32153d99d.jpeg</url>
      <title>DEV Community: Ryan Cuff</title>
      <link>https://dev.to/rjcuff</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rjcuff"/>
    <language>en</language>
    <item>
      <title>I scanned the top 20 npm packages. Everyone passed CVE checks, but here's what the static analysis found</title>
      <dc:creator>Ryan Cuff</dc:creator>
      <pubDate>Mon, 20 Apr 2026 21:42:37 +0000</pubDate>
      <link>https://dev.to/rjcuff/i-scanned-the-top-20-npm-packages-everyone-passed-cve-checks-but-heres-what-the-static-analysis-hkg</link>
      <guid>https://dev.to/rjcuff/i-scanned-the-top-20-npm-packages-everyone-passed-cve-checks-but-heres-what-the-static-analysis-hkg</guid>
      <description>&lt;p&gt;Every time you run &lt;code&gt;npm install&lt;/code&gt;, you're trusting someone else's code to run on your machine. Not eventually — right now. Postinstall hooks fire the second a package lands. No review, no prompt.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://github.com/rjcuff/plum" rel="noopener noreferrer"&gt;plum&lt;/a&gt; to change that. It's a CLI that downloads the package tarball into memory, reads the source, and scores it before anything touches your project.&lt;/p&gt;

&lt;p&gt;I pointed it at the 20 most downloaded npm packages. The results are mostly reassuring — but a few are worth talking about.&lt;/p&gt;

&lt;h2&gt;
  
  
  How plum works
&lt;/h2&gt;

&lt;p&gt;When you run &lt;code&gt;plum axios&lt;/code&gt;, it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fetches the &lt;code&gt;.tgz&lt;/code&gt; from npm into memory (never to disk)&lt;/li&gt;
&lt;li&gt;Scans every &lt;code&gt;.js&lt;/code&gt; file for red flags — obfuscated eval, credential access, shell execution, outbound HTTP in install scripts&lt;/li&gt;
&lt;li&gt;Checks CVEs against the exact resolved version&lt;/li&gt;
&lt;li&gt;Looks at maintainer age, publish recency, download count, and typosquatting distance&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead of pass/fail, plum gives a 0–100 score. The same signal — like &lt;code&gt;child_process&lt;/code&gt; access — means something very different in TypeScript's language server versus a brand-new package from an unknown maintainer.&lt;/p&gt;

&lt;h2&gt;
  
  
  The results
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Package&lt;/th&gt;
&lt;th&gt;Downloads/wk&lt;/th&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;debug&lt;/td&gt;
&lt;td&gt;553M&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;semver&lt;/td&gt;
&lt;td&gt;635M&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;commander&lt;/td&gt;
&lt;td&gt;367M&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;chalk&lt;/td&gt;
&lt;td&gt;410M&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dotenv&lt;/td&gt;
&lt;td&gt;119M&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cors&lt;/td&gt;
&lt;td&gt;49M&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;jsonwebtoken&lt;/td&gt;
&lt;td&gt;40M&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;socket.io&lt;/td&gt;
&lt;td&gt;12M&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;lodash&lt;/td&gt;
&lt;td&gt;146M&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;moment&lt;/td&gt;
&lt;td&gt;31M&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;react&lt;/td&gt;
&lt;td&gt;125M&lt;/td&gt;
&lt;td&gt;90/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;express&lt;/td&gt;
&lt;td&gt;92M&lt;/td&gt;
&lt;td&gt;90/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;vue&lt;/td&gt;
&lt;td&gt;11M&lt;/td&gt;
&lt;td&gt;90/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;eslint&lt;/td&gt;
&lt;td&gt;126M&lt;/td&gt;
&lt;td&gt;80/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;uuid&lt;/td&gt;
&lt;td&gt;240M&lt;/td&gt;
&lt;td&gt;80/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mongoose&lt;/td&gt;
&lt;td&gt;5M&lt;/td&gt;
&lt;td&gt;80/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;axios&lt;/td&gt;
&lt;td&gt;99M&lt;/td&gt;
&lt;td&gt;70/100&lt;/td&gt;
&lt;td&gt;✅ SAFE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;typescript&lt;/td&gt;
&lt;td&gt;181M&lt;/td&gt;
&lt;td&gt;70/100&lt;/td&gt;
&lt;td&gt;✅ SAFE ⚠&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;webpack&lt;/td&gt;
&lt;td&gt;44M&lt;/td&gt;
&lt;td&gt;75/100&lt;/td&gt;
&lt;td&gt;✅ SAFE ⚠&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;next&lt;/td&gt;
&lt;td&gt;34M&lt;/td&gt;
&lt;td&gt;55/100&lt;/td&gt;
&lt;td&gt;⚠ RISKY&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;20/20 had zero CVEs. 16 scored SAFE. 1 scored RISKY.&lt;/p&gt;

&lt;h2&gt;
  
  
  The interesting ones
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Next.js — 55/100, RISKY&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Next.js is not malicious. It's maintained by Vercel, one of the most trusted teams in JS. The score comes from three &lt;code&gt;child_process&lt;/code&gt; references in helper scripts that detect your package manager and check if you're online. Totally legitimate.&lt;/p&gt;

&lt;p&gt;But 55/100 is a conversation starter, not a verdict. A framework using shell access is something you should know about, even if it's expected. That's the point of a score — it surfaces information and lets you decide.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TypeScript &amp;amp; Webpack — flagged, still SAFE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Both got dinged for &lt;code&gt;child_process&lt;/code&gt;. TypeScript's language server needs shell access. Webpack spawns child processes for parallel builds. Neither is surprising. Plum caught real signals and still scored them SAFE given the context.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Axios — 70, worth a look&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Axios scored 70 despite being clean with no CVEs and 99M weekly downloads. There's likely a pattern match hitting unnecessarily in the tarball — I'm investigating. If a tool flags something, it should explain every deduction. That's on the roadmap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;I ran &lt;code&gt;npm audit&lt;/code&gt; on all 20 packages too. Zero issues. Also correct.&lt;/p&gt;

&lt;p&gt;The difference is what each tool checks. &lt;code&gt;npm audit&lt;/code&gt; is a database lookup — it tells you if a known CVE exists for a version. That's valuable. But the supply chain attacks that actually caused damage — event-stream, ua-parser-js, node-ipc — were all zero-days. No CVE existed when developers installed them.&lt;/p&gt;

&lt;p&gt;Behavior-based scanning doesn't replace CVE checking. It adds a layer that databases can't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; plum-scanner
plum &amp;lt;any-package&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's open source: &lt;a href="https://github.com/rjcuff/plum" rel="noopener noreferrer"&gt;github.com/rjcuff/plum&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Built in Rust. Scans in under a second. No account, no API key.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>cli</category>
      <category>security</category>
    </item>
  </channel>
</rss>
