# OSV & deps.dev API: Dependency Vulnerability & License Checker (`infocomp/osv-depsdev-dependency-checker`) Actor

One row per package: resolved version, known vulnerabilities from OSV (ids, severity, fixed versions) and licenses, deprecation and repository health from deps.dev. Official keyless APIs, package-level data only. $1/1,000 packages. Not affiliated with Google, OSV or deps.dev.

- **URL**: https://apify.com/infocomp/osv-depsdev-dependency-checker.md
- **Developed by:** [InfoComp Data](https://apify.com/infocomp) (community)
- **Categories:** Developer tools, Open source
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 package checks

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## OSV & deps.dev API: Dependency Vulnerability & License Checker

Check a list of open-source packages and get **one row per package**: the resolved version, the **known vulnerabilities from OSV** (IDs, aliases such as CVE, severity, CVSS score, fixed versions) and **package facts from deps.dev** (licenses, deprecation, latest version, source repository, OpenSSF Scorecard). Package-level data only: no maintainer or author names.

**$1.00 per 1,000 packages** ($0.001 per package checked). No start fee. You are never charged for failed runs, empty input, duplicates, invalid entries, or packages and versions that cannot be found. Set a maximum cost per run and the Actor stops cleanly when it is reached.

### What you get

- **Ecosystems:** npm, PyPI, crates.io (Cargo), Go, Maven (`groupId:artifactId`), NuGet, RubyGems.
- **Version:** give one, or leave it out to check the latest default version (`versionSource` says which). `latestVersion` and `isLatest` show how far behind you are.
- **Vulnerabilities (OSV):** `vulnerabilityCount`, `riskLevel` (`NONE`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`, or `MALICIOUS` for OSV malware reports), `maxCvssScore`, `fixedVersionsAll`, and a `vulnerabilities` list (newest first, up to the limit you set) with id, aliases, summary, severity, CVSS v3 score and vector, CWE, and the versions that fix it for this package.
- **Package facts (deps.dev):** SPDX `licenses`, `isDeprecated`, homepage, source repository, registries, provenance flag, repository stars, forks and open issues, and the OpenSSF `scorecardScore` (0 to 10).
- **Free extras in the run summary** (key-value store `OUTPUT`): every entry that was not charged and why (`not_found`, `version_not_found`, `invalid`, `error`, `not_checked`).

### Honest limits

- Package **level** only. This is not a lockfile scanner and it does not resolve a dependency tree. Paste the direct packages (and versions) you care about.
- Vulnerability matching is by exact package version as OSV matches it. OSV and deps.dev can lag the registries by minutes to days. Not every advisory has a CVSS score; severity is then `UNKNOWN`.
- CVSS scores are calculated from the CVSS v3.0/3.1 vector in the OSV record. CVSS v4 vectors are passed through as `cvssVector` with no score.
- `fixedVersions` lists the versions OSV names as fixed for this package, including fixes on older release branches, so pick the one on your branch.
- License data comes from package metadata (Go: detected by deps.dev) and is not legal advice.
- Up to 100 vulnerability records are read per package; `vulnerabilitiesTruncated` tells you if there were more.
- Up to 500 packages per run. A default 5-package run takes about 1 to 2 seconds.

### Input

| Field | Meaning |
|---|---|
| `packages` | List of `{"ecosystem": "npm", "name": "lodash", "version": "4.17.15"}` objects, or strings like `"npm:lodash@4.17.15"` or a package URL `"pkg:npm/lodash@4.17.15"`. Version optional. Default: 5 sample packages. |
| `maxVulnerabilitiesPerPackage` | How many vulnerabilities to list per row, 0 to 100 (default 25). The total count is always given. |
| `includeProjectInfo` | Add repository stars, forks and OpenSSF Scorecard (default true; one extra call per package). |

Example input (the default):

```json
{"packages": [
  {"ecosystem": "npm", "name": "lodash", "version": "4.17.15"},
  {"ecosystem": "PyPI", "name": "requests", "version": "2.25.0"},
  {"ecosystem": "Maven", "name": "org.apache.logging.log4j:log4j-core", "version": "2.14.1"},
  {"ecosystem": "npm", "name": "express"},
  {"ecosystem": "crates.io", "name": "serde"}
], "maxVulnerabilitiesPerPackage": 25, "includeProjectInfo": true}
```

### Output

Real rows from a live run on Nov 15 2026 (default input above; field values change as the sources update).

Row with vulnerabilities (`lodash@4.17.15`, whole row):

```json
{
  "ecosystem": "npm",
  "name": "lodash",
  "requestedVersion": "4.17.15",
  "resolvedVersion": "4.17.15",
  "versionSource": "requested",
  "latestVersion": "4.18.1",
  "isLatest": false,
  "publishedAt": "2019-07-19T02:28:46Z",
  "isDeprecated": false,
  "deprecatedReason": null,
  "licenses": [
    "MIT"
  ],
  "licenseCount": 1,
  "homepage": "https://lodash.com/",
  "sourceRepo": "git+https://github.com/lodash/lodash.git",
  "issueTracker": "https://github.com/lodash/lodash/issues",
  "registries": [
    "https://registry.npmjs.org/"
  ],
  "hasProvenance": false,
  "projectId": "github.com/lodash/lodash",
  "repoStars": 61263,
  "repoForks": 7222,
  "repoOpenIssues": 124,
  "scorecardScore": 7.5,
  "scorecardDate": "2026-08-24T00:00:00Z",
  "vulnerabilityCount": 5,
  "riskLevel": "HIGH",
  "maxCvssScore": 8.1,
  "hasMalware": false,
  "fixedVersionsAll": [
    "4.17.19",
    "4.17.21",
    "4.17.23",
    "4.18.0"
  ],
  "vulnerabilities": [
    {
      "id": "GHSA-r5fr-rjxr-66jc",
      "aliases": [
        "CVE-2026-4800"
      ],
      "summary": "lodash vulnerable to Code Injection via `_.template` imports key names",
      "severity": "HIGH",
      "cvssScore": 8.1,
      "cvssVector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "published": "2026-04-01T23:51:12Z",
      "modified": "2026-10-17T02:56:15.633068434Z",
      "fixedVersions": [
        "4.18.0"
      ],
      "lastAffectedVersions": [],
      "cwe": [
        "CWE-94"
      ],
      "isMalware": false,
      "url": "https://osv.dev/vulnerability/GHSA-r5fr-rjxr-66jc"
    },
    {
      "id": "GHSA-35jh-r3h4-6jhm",
      "aliases": [
        "CVE-2021-23337"
      ],
      "summary": "Command Injection in lodash",
      "severity": "HIGH",
      "cvssScore": 7.2,
      "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "published": "2021-05-06T16:05:51Z",
      "modified": "2026-10-17T02:55:38.085813876Z",
      "fixedVersions": [
        "4.17.21"
      ],
      "lastAffectedVersions": [],
      "cwe": [
        "CWE-77",
        "CWE-94"
      ],
      "isMalware": false,
      "url": "https://osv.dev/vulnerability/GHSA-35jh-r3h4-6jhm"
    },
    {
      "id": "GHSA-p6mc-m468-83gw",
      "aliases": [
        "CVE-2020-8203"
      ],
      "summary": "Prototype Pollution in lodash",
      "severity": "HIGH",
      "cvssScore": 7.4,
      "cvssVector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H",
      "published": "2020-07-15T19:15:48Z",
      "modified": "2025-08-12T21:56:17.174859Z",
      "fixedVersions": [
        "4.17.19"
      ],
      "lastAffectedVersions": [],
      "cwe": [
        "CWE-1321",
        "CWE-770"
      ],
      "isMalware": false,
      "url": "https://osv.dev/vulnerability/GHSA-p6mc-m468-83gw"
    },
    {
      "id": "GHSA-xxjr-mmjv-4gpg",
      "aliases": [
        "CVE-2025-13465"
      ],
      "summary": "Lodash has Prototype Pollution Vulnerability in `_.unset`, `_.omit`, and `_.pullAt` functions",
      "severity": "MEDIUM",
      "cvssScore": 6.5,
      "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L",
      "published": "2026-01-21T23:01:22Z",
      "modified": "2026-11-04T03:15:10.832238351Z",
      "fixedVersions": [
        "4.17.23"
      ],
      "lastAffectedVersions": [],
      "cwe": [
        "CWE-1321"
      ],
      "isMalware": false,
      "url": "https://osv.dev/vulnerability/GHSA-xxjr-mmjv-4gpg"
    },
    {
      "id": "GHSA-29mw-wpgm-hmr9",
      "aliases": [
        "CVE-2020-28500"
      ],
      "summary": "Regular Expression Denial of Service (ReDoS) in lodash",
      "severity": "MEDIUM",
      "cvssScore": 5.3,
      "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
      "published": "2022-01-06T20:30:46Z",
      "modified": "2025-09-29T21:12:31.102523Z",
      "fixedVersions": [
        "4.17.21"
      ],
      "lastAffectedVersions": [],
      "cwe": [
        "CWE-1333",
        "CWE-400"
      ],
      "isMalware": false,
      "url": "https://osv.dev/vulnerability/GHSA-29mw-wpgm-hmr9"
    }
  ],
  "vulnerabilitiesTruncated": false,
  "vulnerabilityDetailsFailed": 0,
  "depsDevAdvisoryCount": 5,
  "depsDevUrl": "https://deps.dev/npm/lodash/4.17.15",
  "source": "deps.dev (Google Open Source Insights, CC-BY 4.0) and OSV.dev (osv.dev)",
  "license": "deps.dev data CC-BY 4.0; OSV advisory licences vary by source database",
  "retrievedAt": "2026-11-15T20:28:02Z",
  "disclaimer": "Package facts from deps.dev (CC-BY 4.0, Google API Terms) and vulnerability data from OSV.dev; advisory texts keep the licence of their source database. Not affiliated with, endorsed by or provided by Google, OSV or deps.dev. Informational only, not legal or security advice."
}
```

Clean package (`express`, latest version; disclaimer field shortened here, it is in every real row):

```json
{
  "ecosystem": "npm",
  "name": "express",
  "requestedVersion": null,
  "resolvedVersion": "5.3.0",
  "versionSource": "latest default version",
  "latestVersion": "5.3.0",
  "isLatest": true,
  "publishedAt": "2026-10-09T12:56:54Z",
  "isDeprecated": false,
  "deprecatedReason": null,
  "licenses": [
    "MIT"
  ],
  "licenseCount": 1,
  "homepage": "https://expressjs.com/",
  "sourceRepo": "git+https://github.com/expressjs/express.git",
  "issueTracker": "https://github.com/expressjs/express/issues",
  "registries": [
    "https://registry.npmjs.org/"
  ],
  "hasProvenance": false,
  "projectId": "github.com/expressjs/express",
  "repoStars": 69687,
  "repoForks": 25453,
  "repoOpenIssues": 262,
  "scorecardScore": 8.5,
  "scorecardDate": "2026-08-24T00:00:00Z",
  "vulnerabilityCount": 0,
  "riskLevel": "NONE",
  "maxCvssScore": null,
  "hasMalware": false,
  "fixedVersionsAll": [],
  "vulnerabilities": [],
  "vulnerabilitiesTruncated": false,
  "vulnerabilityDetailsFailed": 0,
  "depsDevAdvisoryCount": 0,
  "depsDevUrl": "https://deps.dev/npm/express/5.3.0",
  "source": "deps.dev (Google Open Source Insights, CC-BY 4.0) and OSV.dev (osv.dev)",
  "license": "deps.dev data CC-BY 4.0; OSV advisory licences vary by source database",
  "retrievedAt": "2026-11-15T20:28:02Z"
}
```

### Pricing

**$0.001 per package row = $1.00 per 1,000 packages.** One event, `Package check`, per saved row. Not charged: failed runs, empty input, duplicate entries, invalid entries, unknown packages, unknown versions, and rows that could not be completed because an API failed. With a maximum cost per run set, the Actor stops before spending more API calls and says so in the run status.

### Data sources and attribution

- **deps.dev** (Open Source Insights, Google): package, version, licence, link and project data via the public API. deps.dev's generated data is available under the **Creative Commons Attribution 4.0 (CC-BY 4.0)** licence, and use of the API is subject to the **Google API Terms of Service**. Source: https://deps.dev, API docs https://docs.deps.dev/api/v3/. Each row carries `source` and `license`.
- **OSV.dev** (Open Source Vulnerabilities): vulnerability records via https://api.osv.dev. Advisory texts keep the licence of the database they come from (for example GitHub Advisory Database, CC-BY 4.0; Go Vulnerability Database, CC-BY 4.0; RustSec, CC0 1.0). See https://google.github.io/osv.dev/data/. Credit: OSV, https://osv.dev.
- Each row links back to the deps.dev page (`depsDevUrl`) and every vulnerability to its OSV page (`url`).

**Not affiliated with, endorsed by or provided by Google, OSV or deps.dev.** All trademarks belong to their owners. Informational only: not legal, licence-compliance or security advice; check the original advisories before acting on them.

### Related InfoComp tools

- Company Name to Website Finder (Wikidata): https://apify.com/infocomp/wikidata-company-finder

# Actor input Schema

## `packages` (type: `array`):

Packages to check, up to 500. Each entry is {"ecosystem": "npm", "name": "lodash", "version": "4.17.15"} or a string like "npm:lodash@4.17.15". Ecosystems: npm, PyPI, crates.io, Go, Maven (name = groupId:artifactId), NuGet, RubyGems. Leave the version out to check the latest default version.

## `maxVulnerabilitiesPerPackage` (type: `integer`):

Most severe/newest vulnerabilities listed in each row (0 to 100). The full count is always given.

## `includeProjectInfo` (type: `boolean`):

Add source repository stars, forks and OpenSSF Scorecard score from deps.dev (one extra call per package).

## Actor input object example

```json
{
  "packages": [
    {
      "ecosystem": "npm",
      "name": "lodash",
      "version": "4.17.15"
    },
    {
      "ecosystem": "PyPI",
      "name": "requests",
      "version": "2.25.0"
    },
    {
      "ecosystem": "Maven",
      "name": "org.apache.logging.log4j:log4j-core",
      "version": "2.14.1"
    },
    {
      "ecosystem": "npm",
      "name": "express"
    },
    {
      "ecosystem": "crates.io",
      "name": "serde"
    }
  ],
  "maxVulnerabilitiesPerPackage": 25,
  "includeProjectInfo": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "packages": [
        {
            "ecosystem": "npm",
            "name": "lodash",
            "version": "4.17.15"
        },
        {
            "ecosystem": "PyPI",
            "name": "requests",
            "version": "2.25.0"
        },
        {
            "ecosystem": "Maven",
            "name": "org.apache.logging.log4j:log4j-core",
            "version": "2.14.1"
        },
        {
            "ecosystem": "npm",
            "name": "express"
        },
        {
            "ecosystem": "crates.io",
            "name": "serde"
        }
    ],
    "maxVulnerabilitiesPerPackage": 25,
    "includeProjectInfo": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("infocomp/osv-depsdev-dependency-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "packages": [
        {
            "ecosystem": "npm",
            "name": "lodash",
            "version": "4.17.15",
        },
        {
            "ecosystem": "PyPI",
            "name": "requests",
            "version": "2.25.0",
        },
        {
            "ecosystem": "Maven",
            "name": "org.apache.logging.log4j:log4j-core",
            "version": "2.14.1",
        },
        {
            "ecosystem": "npm",
            "name": "express",
        },
        {
            "ecosystem": "crates.io",
            "name": "serde",
        },
    ],
    "maxVulnerabilitiesPerPackage": 25,
    "includeProjectInfo": True,
}

# Run the Actor and wait for it to finish
run = client.actor("infocomp/osv-depsdev-dependency-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "packages": [
    {
      "ecosystem": "npm",
      "name": "lodash",
      "version": "4.17.15"
    },
    {
      "ecosystem": "PyPI",
      "name": "requests",
      "version": "2.25.0"
    },
    {
      "ecosystem": "Maven",
      "name": "org.apache.logging.log4j:log4j-core",
      "version": "2.14.1"
    },
    {
      "ecosystem": "npm",
      "name": "express"
    },
    {
      "ecosystem": "crates.io",
      "name": "serde"
    }
  ],
  "maxVulnerabilitiesPerPackage": 25,
  "includeProjectInfo": true
}' |
apify call infocomp/osv-depsdev-dependency-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,infocomp/osv-depsdev-dependency-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/emtHcTz8ZWF7NX1U8/builds/blrVgtd1vgGRQycYY/openapi.json
