NPM Package Security Scanner - CVE, Typosquat, Supply Chain avatar

NPM Package Security Scanner - CVE, Typosquat, Supply Chain

Pricing

from $1.00 / 1,000 item scanneds

Go to Apify Store
NPM Package Security Scanner - CVE, Typosquat, Supply Chain

NPM Package Security Scanner - CVE, Typosquat, Supply Chain

Scan npm packages for security vulnerabilities, supply chain risks, and quality signals. Returns CVE count, maintainer activity, typosquat detection, install script flags, dependency count, license info, and download trends. Uses npm registry and OSV.dev APIs. No API key required.

Pricing

from $1.00 / 1,000 item scanneds

Rating

0.0

(0)

Developer

Hojun Lee

Hojun Lee

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 days ago

Last modified

Categories

Share

What does npm Package Security Scanner do?

npm package security scanner audits any npm package for JavaScript vulnerability exposure, supply chain risks, and maintenance signals — no API key required. For each package you provide, the actor queries the npm Registry, npm Downloads API, and OSV.dev to compute a composite risk label (critical, high, medium, or low), detect known CVEs, flag suspicious install scripts, and identify typosquatting candidates. This npm CVE checker works on individual packages or bulk lists of hundreds of packages.

All data sources are free and public. No tokens, no proxies, no rate-limit registration needed.

Why use npm Package Security Scanner?

  • CI/CD dependency auditing — integrate this JavaScript vulnerability audit into your pull-request pipeline to catch risky packages before they land in production.
  • Supply chain security — detect preinstall, install, and postinstall scripts that execute arbitrary code during npm install before they run in your environment.
  • License compliance — automatically flag copyleft licenses (GPL, LGPL, AGPL, MPL) that may conflict with your project's commercial licensing requirements.
  • Typosquat detection — identify packages whose names sit within one edit distance of a popular library, a common attack vector for npm CVE injection campaigns.
  • Open-source due diligence — before adopting a new library, confirm it is actively maintained, not abandoned, and free of critical JavaScript vulnerability findings.

How to use npm Package Security Scanner

  1. Open the actor on Apify and click Try for free.
  2. In the Input tab, add your package names to the packages array (e.g. ["express", "lodash", "left-pad"]).
  3. Click Start — the actor runs sequentially to be respectful of public API rate limits.
  4. Review each record's overall_risk label and vuln_severity_max to prioritize remediation.
  5. Export results as JSON or CSV, or connect via the Apify API to automate security gates in CI/CD.

Input

FieldTypeRequiredDefaultDescription
packagesstring[]Yes—npm package names to scan (e.g. express, @types/node)
includeDevDependenciesbooleanNofalseReserved for future use

Example input:

{
"packages": ["express", "lodash", "left-pad", "colors"]
}

Output

One record per scanned package, saved to the Apify dataset:

[
{
"package": "colors",
"version": "1.4.0",
"overall_risk": "high",
"has_known_vulns": false,
"vuln_count": 0,
"vuln_severity_max": null,
"typosquat_risk": "low",
"has_install_script": false,
"is_abandoned": true,
"days_since_last_publish": 823,
"maintainer_count": 1,
"dependency_count": 0,
"license": "MIT",
"is_copyleft_license": false,
"weekly_downloads": 18200000,
"download_trend": "declining",
"scanned_at": "2026-09-01T10:00:00+00:00",
"error": null
}
]

Data fields

FieldTypeDescription
packagestringnpm package name
versionstringLatest published version
overall_riskstringComposite risk label: critical, high, medium, or low
has_known_vulnsbooleanTrue if OSV.dev reports any known vulnerability
vuln_countintegerNumber of vulnerabilities from OSV.dev
vuln_severity_maxstring | nullHighest severity: CRITICAL, HIGH, MEDIUM, LOW, or null
typosquat_riskstringhigh if name is 1 edit away from a popular package
has_install_scriptbooleanTrue if preinstall/install/postinstall scripts exist
is_abandonedbooleanTrue if no publish in 365+ days
days_since_last_publishintegerDays since the latest version was published
maintainer_countintegerNumber of registered npm maintainers
dependency_countintegerNumber of direct dependencies
licensestringSPDX license string
is_copyleft_licensebooleanTrue for GPL / LGPL / AGPL / MPL
weekly_downloadsintegerDownloads in the last 7 days
download_trendstringgrowing, stable, or declining
scanned_atISO8601Timestamp of the scan
errorstring | nullError message if the package could not be scanned

Risk classification

Risk levelTriggers
criticalOSV.dev reports a vulnerability with HIGH or CRITICAL severity
highTyposquatting risk detected OR package abandoned for 365+ days
mediumInstall scripts present (supply chain risk) OR copyleft license detected
lowNone of the above risk signals found

Cost estimation

Pricing is Pay-Per-Event (PPE) — charged once per package successfully scanned.

Packages scannedCost
10$0.05
100$0.50
500$2.50
1,000$5.00

FAQ

Which vulnerability database does this use? The actor queries OSV.dev — the open-source vulnerability database maintained by Google. It aggregates CVEs, GitHub Security Advisories, and other sources for npm packages. No API key is required.

Does it scan transitive (indirect) dependencies? Currently only direct dependencies are counted via dependency_count. Deep transitive scanning is on the roadmap.

Can I run this on every PR automatically? Yes. Use the Apify Scheduler or trigger runs via the REST API to automate JavaScript vulnerability audit checks as part of your CI/CD workflow.


Disclaimer: This actor provides security signals based on publicly available data from npm and OSV.dev. Results are for informational purposes and do not constitute a comprehensive security audit. Always verify findings with your security team before making dependency decisions.


  • npm Package Trends — Download velocity and bundle size for the same packages you scan for vulnerabilities
  • GitHub Repo Stats — Contributor activity and issue count as additional maintenance signals alongside CVE status
  • Open Source Releases Tracker — Monitor patch releases that fix the vulnerabilities this scanner detects

Feedback

If this actor helps your supply chain security, a review helps others find it: Leave a review on Apify Store


Keywords: npm security scanner, npm CVE checker, supply chain security, npm vulnerability audit, package security risk, malicious npm package, npm audit API, software composition analysis, SCA tool, open source vulnerability, npm typosquatting, dependency risk assessment, CVSS score npm, npm package integrity, Node.js security