# OSV Scraper | Open-Source Package Vulnerabilities (CVE) (`muzafferkadir/osv-vulnerabilities-scraper`) Actor

Look up known security vulnerabilities (CVE/GHSA) for open-source packages — npm, PyPI, Go, Maven & more — via the official OSV.dev API: severity, references, dates. No API key.

- **URL**: https://apify.com/muzafferkadir/osv-vulnerabilities-scraper.md
- **Developed by:** [Muzaffer Kadir YILMAZ](https://apify.com/muzafferkadir) (community)
- **Categories:** Developer tools, Open source, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 vulnerabilities

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 Vulnerabilities Scraper

Look up **known security vulnerabilities** for **open-source packages** — **CVE and GHSA IDs, summary, CVSS severity, references, and dates** — from the **official [OSV.dev](https://osv.dev) API**: no API key or setup needed.

Give it a list like `npm:lodash`, `PyPI:django`, `Maven:org.apache.logging.log4j:log4j-core`, and get a clean, dated table of every advisory affecting each package — ready to export to CSV, Excel, or JSON, or to power a dependency-security monitor.

### Features

- **Official, reliable source** — reads the public OSV.dev query API (Google's Open Source Vulnerabilities database).
- **Every ecosystem** — npm, PyPI, Go, Maven, RubyGems, crates.io, NuGet, Packagist, Pub, Hex, Composer, Debian, Alpine.
- **CVE & GHSA** — each row carries the OSV/GHSA id plus mapped CVE ids and CVSS severity.
- **Monitoring-ready** — schedule it on your dependency list and catch new advisories as they publish.

### Use cases

- **Dependency security audits** — scan a project's package list for known vulnerabilities.
- **Continuous monitoring** — schedule daily and alert on new advisories for your stack.
- **Supply-chain research** — build datasets of vulnerabilities by ecosystem, package, or severity.
- **Compliance & reporting** — export CVE/GHSA evidence with dates and references.

### Input

| Field | Type | Description |
| --- | --- | --- |
| `packages` | string\[] | Entries in `ecosystem:name` format, e.g. `npm:lodash`, `PyPI:django`. Ecosystem is everything before the first colon. |
| `includeWithdrawn` | boolean | Include withdrawn/retracted advisories. Default `false`. |
| `maxItems` | integer | Max vulnerabilities per package. Default `1000`. |

Ecosystem names are case-sensitive: `npm`, `PyPI`, `Go`, `Maven`, `RubyGems`, `crates.io`, `NuGet`, `Packagist`, `Pub`, `Hex`, `Composer`, `Debian`, `Alpine`. Common aliases are normalized (`pypi`/`pip` → `PyPI`, `cargo`/`crates` → `crates.io`, `gem` → `RubyGems`, `composer` → `Packagist`, `golang` → `Go`).

#### Example

```json
{
  "packages": ["npm:lodash", "PyPI:django", "Maven:org.apache.logging.log4j:log4j-core"],
  "includeWithdrawn": false,
  "maxItems": 1000
}
```

### Output

```json
{
  "ecosystem": "npm",
  "package": "lodash",
  "vulnId": "GHSA-29mw-wpgm-hmr9",
  "aliases": ["CVE-2020-28500"],
  "cveIds": ["CVE-2020-28500"],
  "summary": "Regular Expression Denial of Service (ReDoS) in lodash",
  "details": "All versions of package lodash prior to 4.17.21 are vulnerable to ReDoS…",
  "severityCvss": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N",
  "publishedAt": "2022-01-06T20:30:46Z",
  "modifiedAt": "2025-09-29T21:12:31.102523Z",
  "withdrawn": null,
  "references": ["https://nvd.nist.gov/vuln/detail/CVE-2020-28500"],
  "url": "https://osv.dev/vulnerability/GHSA-29mw-wpgm-hmr9",
  "scrapedAt": "2026-08-11T19:00:00.000Z"
}
```

Download the dataset as **JSON, CSV, Excel, or XML**, or pull it via the Apify API.

### Pricing

Pay-per-event: **$0.01 per run start** (per GB of run memory) plus **$0.50 per 1,000 vulnerabilities**. You only pay for vulnerabilities actually returned. See the **Pricing** tab for current rates.

### FAQ

**Do I need an API key?**
No. OSV.dev's query API is public and free; this Actor packages it into clean, dated rows with detail links.

**Which ecosystems are supported?**
npm, PyPI, Go, Maven, RubyGems, crates.io, NuGet, Packagist, Pub, Hex, Composer, Debian, Alpine — anything OSV.dev indexes.

**Can I filter to a specific version?**
This Actor returns all advisories for a package. Filter by the `affected` ranges in your own pipeline if needed.

**Can I monitor for new vulnerabilities?**
Yes — schedule the Actor (e.g. daily) with your dependency list.

### Disclaimer

This Actor uses the **public OSV.dev API**. It is not affiliated with or endorsed by OSV.dev, Google, or any advisory database. The data is public; you are responsible for how you use it.

# Actor input Schema

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

Packages to look up, one per entry in the format "ecosystem:name". The ecosystem is everything before the FIRST colon; the name is the rest (a name may contain a colon, e.g. Maven groupId:artifactId). Examples: "npm:lodash", "PyPI:django", "Maven:org.apache.logging.log4j:log4j-core". Common aliases are normalized (pypi/pip → PyPI, cargo/crates → crates.io, gem → RubyGems, composer → Packagist, golang → Go). Ecosystem names are case-sensitive: npm, PyPI, Go, Maven, RubyGems, crates.io, NuGet, Packagist, Pub, Hex, Composer, Debian, Alpine.

## `includeWithdrawn` (type: `boolean`):

Include withdrawn/retracted advisories.

## `maxItems` (type: `integer`):

Max vulnerabilities per package.

## `proxyConfiguration` (type: `object`):

Optional. Leave empty for most runs.

## Actor input object example

```json
{
  "packages": [
    "npm:lodash",
    "PyPI:django"
  ],
  "includeWithdrawn": false,
  "maxItems": 1000
}
```

# Actor output Schema

## `results` (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": [
        "npm:lodash",
        "PyPI:django"
    ],
    "maxItems": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("muzafferkadir/osv-vulnerabilities-scraper").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": [
        "npm:lodash",
        "PyPI:django",
    ],
    "maxItems": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("muzafferkadir/osv-vulnerabilities-scraper").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": [
    "npm:lodash",
    "PyPI:django"
  ],
  "maxItems": 1000
}' |
apify call muzafferkadir/osv-vulnerabilities-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muzafferkadir/osv-vulnerabilities-scraper"
        }
    }
}
```

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/l0SjOQviS5DAm4Va8/builds/uXCEPQK5klyFz8Lm1/openapi.json
