Package Health & Vulnerability Audit avatar

Package Health & Vulnerability Audit

Pricing

from $2.40 / 1,000 package checkeds

Go to Apify Store
Package Health & Vulnerability Audit

Package Health & Vulnerability Audit

Maintenance status, license, downloads and known vulnerabilities with fixed versions for npm, crates.io and RubyGems packages, one row per package version.

Pricing

from $2.40 / 1,000 package checkeds

Rating

0.0

(0)

Developer

Saffo

Saffo

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Package Vulnerability Audit: npm, crates.io and RubyGems health check

Maintenance status, license, downloads and known vulnerabilities with fixed versions for npm, crates.io and RubyGems packages, one row per package version.

What it does

Give it a list of npm, crates.io (cargo) and RubyGems packages, optionally pinned to a version, and it returns one row per package version. Each row holds the latest version and whether yours is outdated, the license, release dates and how often the package was released in the last year, npm deprecation and cargo/RubyGems yank state, the number of direct runtime dependencies, download counts, and every known vulnerability that affects that exact version, with its severity, CVSS vector and the versions that fix it.

On top of the raw data it adds a maintenance status (active, maintained, stale, abandoned), risk flags such as severe-vulnerability or outdated, and a rule-based 0-100 health score, so you can triage a dependency list without opening three registries and an advisory database. Ecosystems can be mixed in one run. Data is read live from the registries' public APIs and from OSV.dev at run time. No maintainer, author or publisher data is ever returned.

Who it is for

  • Developers and platform teams checking a dependency before adding or upgrading it: is the pinned version vulnerable, which version fixes it, is the package still released?
  • Security and compliance reviewers who need a table of licenses and known advisories for a list of open-source packages.
  • AI agents and scripts that audit dependencies as one step of a larger task and want structured JSON instead of web pages.

How to use it

  1. Open the actor on Apify Store and go to its Input tab.
  2. Fill in packages; every other field has a default (see Input below).
  3. Click Start. The run ends at the limits below, or earlier at the "Maximum cost per run" you set.
  4. When the run ends, open the Output tab: view the results as a table, or export them as JSON, CSV or Excel.

Input

FieldTypeDefaultDescription
packagesarrayrequiredPackages to audit, one per entry, as "ecosystem:name" or "ecosystem:name@version" with ecosystem npm, cargo or rubygems (for example "npm:lodash@4.17.20", "cargo:serde", "rubygems:rails@7.0.0"). A name without prefix uses the default ecosystem; without a version the latest stable version is checked.
defaultEcosystemstring"npm"Ecosystem used for entries without a prefix; one of npm, cargo, rubygems.
maxItemsinteger200Stop after this many package rows (duplicates in the list are removed first). At most 5000 per run.

Example input:

{
"packages": [
"npm:express",
"cargo:serde",
"rubygems:rails"
],
"maxItems": 3
}

Write each entry as ecosystem:name or ecosystem:name@version, with ecosystem npm, cargo or rubygems. Scoped npm names work with a version too (npm:@babel/core@7.0.0). Entries without a prefix use Default ecosystem; entries without a version are checked at the latest stable version. Duplicates are removed before Max packages applies. Pinned versions look like this:

{
"packages": ["npm:lodash@4.17.20", "cargo:time@0.1.45", "rubygems:nokogiri@1.10.0", "left-pad"],
"defaultEcosystem": "npm"
}

Output

Each result is one dataset item:

FieldTypeDescription
urlstringWeb address of the item: its own page, or the page it was read from.
titlestringTitle of the item as shown on the page.
ecosystemstringRegistry of the package; one of npm, cargo, rubygems.
statusstringLookup result; one of ok, package-not-found, version-not-found, error. Only rows with ok are charged.
requestedVersionstring or nullVersion given in the input entry; null when the entry had no version.
checkedVersionstring or nullVersion that was audited, the requested one or else the latest stable version.
latestVersionstring or nullLatest stable version in the registry (npm dist-tag latest, crates.io max_stable_version, RubyGems version).
isLatestboolean or nullTrue when checkedVersion equals latestVersion.
licensestring or nullLicense of the checked version as published (SPDX expression where the registry uses one); null when none is declared.
checkedVersionReleasedAtstring or nullPublication time of the checked version (ISO 8601, UTC).
latestReleasedAtstring or nullPublication time of the latest stable version (ISO 8601, UTC).
firstReleasedAtstring or nullPublication time of the first version of the package (ISO 8601, UTC).
daysSinceLatestReleaseinteger or nullWhole days from latestReleasedAt to fetchedAt.
versionCountinteger or nullNumber of distinct published version numbers, yanked or deprecated ones included.
releasesLast365Daysinteger or nullNumber of distinct versions published in the 365 days before fetchedAt.
maintenanceStatusstring or nullFrom daysSinceLatestRelease; active up to 90 days, maintained up to 365, stale up to 730, abandoned above.
deprecatedboolean or nullTrue when npm marks the checked version deprecated; null for cargo and rubygems, which have no such flag.
deprecationMessagestring or nullDeprecation text npm shows for the checked version; null when not deprecated.
yankedboolean or nullTrue when the checked version is yanked (cargo, rubygems); null for npm.
dependencyCountinteger or nullNumber of direct runtime dependencies of the checked version.
recentDownloadsinteger or nullDownloads in the window given by recentDownloadsDays (npm 30 days, cargo 90 days); null for rubygems.
recentDownloadsDaysinteger or nullLength in days of the recentDownloads window; null when recentDownloads is null.
totalDownloadsinteger or nullAll-time downloads of the package (cargo, rubygems); null for npm, whose API has no all-time count.
vulnerabilityCountinteger or nullNumber of distinct known advisories (after alias merging) affecting the checked version.
maxSeveritystring or nullHighest severity among the advisories; one of critical, high, moderate, low, unknown, none.
latestVersionVulnerabilityCountinteger or nullAdvisories affecting latestVersion, so a user sees whether upgrading clears them.
vulnerabilitiesarray or nullAdvisories affecting the checked version, highest severity first.
riskFlagsarray or nullRisk markers, any of vulnerable, severe-vulnerability, deprecated, yanked, outdated, stale, abandoned, no-license, single-release, unmaintained-advisory.
healthScoreinteger or nullRule-based 0-100 score from the risk flags; null when status is not ok.
fetchedAtstringWhen the page was read (ISO 8601, UTC).

Example output (real items from a test run):

[
{
"url": "https://www.npmjs.com/package/express/v/5.3.0",
"title": "express",
"ecosystem": "npm",
"status": "ok",
"requestedVersion": null,
"checkedVersion": "5.3.0",
"latestVersion": "5.3.0",
"isLatest": true,
"license": "MIT",
"checkedVersionReleasedAt": "2026-10-09T12:56:54Z",
"latestReleasedAt": "2026-10-09T12:56:54Z",
"firstReleasedAt": "2010-12-29T19:38:25Z",
"daysSinceLatestRelease": 41,
"versionCount": 290,
"releasesLast365Days": 7,
"maintenanceStatus": "active",
"deprecated": false,
"deprecationMessage": null,
"yanked": null,
"dependencyCount": 28,
"recentDownloads": 826990589,
"recentDownloadsDays": 30,
"totalDownloads": null,
"vulnerabilityCount": 0,
"maxSeverity": "none",
"latestVersionVulnerabilityCount": 0,
"vulnerabilities": [],
"riskFlags": [],
"healthScore": 100,
"fetchedAt": "2026-11-20T05:09:42Z"
},
{
"url": "https://crates.io/crates/serde/1.0.229",
"title": "serde",
"ecosystem": "cargo",
"status": "ok",
"requestedVersion": null,
"checkedVersion": "1.0.229",
"latestVersion": "1.0.229",
"isLatest": true,
"license": "MIT OR Apache-2.0",
"checkedVersionReleasedAt": "2026-07-18T23:05:13Z",
"latestReleasedAt": "2026-07-18T23:05:13Z",
"firstReleasedAt": "2014-12-05T20:20:39Z",
"daysSinceLatestRelease": 124,
"versionCount": 316,
"releasesLast365Days": 1,
"maintenanceStatus": "maintained",
"deprecated": null,
"deprecationMessage": null,
"yanked": false,
"dependencyCount": 2,
"recentDownloads": 446673785,
"recentDownloadsDays": 90,
"totalDownloads": 1745600890,
"vulnerabilityCount": 0,
"maxSeverity": "none",
"latestVersionVulnerabilityCount": 0,
"vulnerabilities": [],
"riskFlags": [],
"healthScore": 100,
"fetchedAt": "2026-11-20T05:09:42Z"
}
]

A pinned, older version shows what an upgrade would fix. In a test run, npm:lodash@4.17.20 returned four advisories (two high, two moderate) fixed in 4.17.21, 4.17.23 and 4.18.0, the flags vulnerable, severe-vulnerability and outdated, a health score of 55, and latestVersionVulnerabilityCount 0 for the latest version 4.18.1.

The health score starts at 100 and subtracts 40 for a critical or high advisory (else 20 for any advisory), 30 for a deprecated or yanked version, 25 for abandoned (else 15 for stale), 10 for no declared license and 5 for not being the latest version.

Entries that could not be audited (package not found, version not found, unknown prefix, registry error) are not saved to the dataset and are not charged. They are listed with the reason in the run's key-value store under the key NOT_CHECKED.

Download the dataset as JSON, CSV or Excel, or read it through the Apify API.

Pricing

Pay per event: a small fee per run plus a fee per result saved. Platform usage is included in these prices.

EventWhen it is chargedFree planBronze planSilver planGold planPlatinum planDiamond plan
Run started (run-started)Flat fee once per run; covers starting the run and reading the input.$0.025$0.02$0.018$0.016$0.016$0.016
Package checked (package-checked)One package version audited and saved to the dataset with status ok.$0.0037$0.003$0.0027$0.0024$0.0024$0.0024

Example (lowest plan price): a run that saves 100 results costs $0.016 + 100 × $0.0024 = $0.256. That is $2.40 per 1,000 results plus $0.016 per run. You pay only for results saved to the dataset; set "Maximum cost per run" in the run options and the actor stops there.

Only packages audited with status ok are charged; not-found and failed entries are free. For example, auditing 200 packages costs $0.02 + 200 × $0.003 = $0.62.

Limits

  • One run saves at most 5,000 results and loads at most 30,000 pages. Larger jobs: split the start URLs over several runs.

  • Default memory 512 MB; no proxy.

  • When a limit is reached, the run ends normally and keeps every result saved so far; the status message says which limit it was.

  • Covered registries: npm, crates.io and RubyGems. PyPI, Maven, Go and others are not covered.

  • Each package takes three to five API requests; they count as pages in the limit above.

  • crates.io allows one API request per second, so cargo packages are audited at about one per second; npm and RubyGems packages go faster.

  • Vulnerability data is only as complete as OSV.dev. RustSec notices such as "unmaintained" are shown as the unmaintained-advisory flag, not as vulnerabilities.

  • dependencyCount counts direct runtime dependencies only, not the whole dependency tree.

  • recentDownloads covers 30 days on npm and 90 days on crates.io; RubyGems has no recent count, and npm has no all-time count.

  • The health score is a rule-based heuristic, not a security guarantee.

Data sources and attribution: package data from the npm public registry, the crates.io API and index, and the RubyGems.org API; vulnerability data from OSV.dev, including the GitHub Advisory Database (CC-BY 4.0), RustSec (CC0 1.0) and OpenSSF Malicious Packages (Apache 2.0). This actor is not affiliated with or endorsed by npm, GitHub, the Rust Foundation, Ruby Central or Google.

Use with AI agents

AI agents can call this actor as a tool through the Apify MCP server. Add it to an MCP client (Claude Desktop, Cursor, VS Code and others):

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com/?tools=saffo/package-health-audit"
}
}
}

Or call it over HTTP and get the results in the response:

curl -X POST "https://api.apify.com/v2/acts/saffo~package-health-audit/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"packages":["npm:express","cargo:serde","rubygems:rails"],"maxItems":3}'

FAQ

How much does it cost?

You pay per event: from $0.0024 per package checked plus $0.016 per run. The Pricing section lists the price on every Apify plan. Platform usage is included, and the run stops at the maximum cost per run you set.

Can I use it from an AI agent or my own code?

Yes. Add it to any MCP client through the Apify MCP server, or call the Apify API; the examples under Use with AI agents show both. Results come back as JSON.

How many results can one run return?

Up to 5,000 results from at most 30,000 pages. For more, split the input over several runs.

Does it collect personal data?

No. It saves only the fields listed under Output and leaves out names, e-mail addresses, phone numbers and profiles of private persons.

Does it scan my package.json, Cargo.toml or Gemfile?

No, manifest files are not parsed. Paste the dependency names into Packages, with versions (npm:lodash@4.17.20) when you want to audit the exact versions you use.

Why is a package flagged outdated but not vulnerable?

outdated only means the checked version is not the latest stable one; vulnerable means OSV.dev lists at least one advisory for that exact version. An old version with no known advisory gets outdated (−5 on the score) but not vulnerable. Compare vulnerabilityCount with latestVersionVulnerabilityCount to see whether upgrading clears the advisories.

More actors by the same author on Apify Store:

  • Brand Ownership Lookup: Parent Company & Ultimate Owner: For each brand, product or company name, returns the owning company, the chain up to the ultimate parent with its LEI and stock tickers, and its major institutional shareholders, all from Wikidata.
  • Google Play Developer Portfolio Tracker: Every app a Google Play developer page lists, with rating, installs, price, monetisation, release and update dates and its change since the last run, one row per app.
  • Google Play Ratings by Country: Compares the star rating Google Play shows in each country for the apps you list, with star shares, price, spread and change since the last run, one report per app. Not affiliated with Google.

Support

Open an issue on the actor's Issues tab.

Changelog

0.1 (2026-11-20)

  • First release: audits npm, crates.io and RubyGems packages (latest version, license, release dates, deprecation and yank state, direct dependencies, downloads) with known vulnerabilities and fixed versions from OSV.dev, risk flags and a health score.