# OSV Vulnerability Scraper - Package Security Advisories (`thirdwatch/osv-vulnerability-scraper`) Actor

Find known vulnerabilities for npm, PyPI, Maven, Go, NuGet, Cargo, RubyGems, and other packages. Export advisory IDs, affected versions, fixes, severity, references, and source links.

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

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

> Find package vulnerabilities, affected versions, fixed releases, severity, aliases, and advisory links across major open-source ecosystems.

### What you get

Check exact package versions or package names against the aggregated OSV vulnerability database. Every result preserves the advisory identity, affected-version evidence, fixes, references, and source attribution needed for dependency review, software inventory enrichment, and remediation queues.

### Output fields

| Field | Description |
|---|---|
| `id` | Primary OSV advisory identifier |
| `aliases` | CVE, GHSA, PYSEC, and other aliases |
| `summary` / `details` | Published vulnerability explanation |
| `published` / `modified` / `withdrawn` | Advisory lifecycle timestamps |
| `severity` / `severity_label` | Published severity data when available |
| `affected_packages` | Ecosystems, packages, ranges, and affected versions |
| `fixed_versions` | Distinct fixed versions found in affected ranges |
| `references` | Advisory, patch, report, and source links |
| `credits` | Published vulnerability credits |
| `matched_input` | Package or advisory input that produced the row |
| `source_url` / `source` | OSV record link and attribution |

### Example output

```json
{
  "id": "GHSA-9hjg-9r4m-mvj7",
  "aliases": ["CVE-2024-47081"],
  "summary": "Requests vulnerable to credential disclosure through crafted URLs",
  "severity_label": "MODERATE",
  "fixed_versions": ["2.32.4"],
  "matched_input": "PyPI:requests@2.31.0",
  "source_url": "https://osv.dev/vulnerability/GHSA-9hjg-9r4m-mvj7"
}
```

### Input parameters

| Parameter | Required | Description |
|---|---|---|
| `packages` | No | Packages as `Ecosystem:name` or `Ecosystem:name@version`. |
| `vulnerabilityIds` | No | Exact OSV, GHSA, CVE, PYSEC, or ecosystem advisory IDs. |
| `maxResultsPerPackage` | No | Maximum advisories per package entry. Defaults to 10. |

### Use cases

- Security teams: turn software inventories into source-linked remediation queues.
- Engineering teams: check package versions before upgrades or releases.
- Compliance teams: retain advisory evidence for software supply-chain reviews.
- Developers: enrich SBOM, dependency, and asset-management workflows.

### Export OSV package vulnerabilities without an API key

Use package-and-version inputs for dependency checks or exact advisory IDs for enrichment. The public source needs no credential, and every saved row retains upstream references for verification.

### Limitations

OSV aggregates upstream databases with different coverage, licenses, severity conventions, and update schedules. A missing result does not prove a package is safe. Git commit queries and repository scanning are outside this Actor's scope. Confirm remediation decisions against the upstream advisory and your deployed environment.

### Compared to alternatives

Compared with `crawlerbros/osv-vulnerabilities-scraper`, this Actor accepts package checks and exact advisory IDs together and keeps a low 10-result default. Compared with a general NVD search, OSV maps advisories to open-source package ecosystems and version ranges. Store pricing and features can change.

### FAQ

#### Which ecosystems work?

OSV covers npm, PyPI, Go, Maven, NuGet, crates.io, RubyGems, Packagist, Linux distributions, and other published ecosystems. Ecosystem names must match OSV naming.

#### Can I check a specific version?

Yes. Use a value such as `npm:lodash@4.17.20`.

#### Is this a security scanner?

No. It returns known published advisories for supplied identifiers; it does not inspect systems or prove exploitability.

Explore more at [thirdwatch.dev](https://thirdwatch.dev). Related Actors: [NVD CVE Scraper](https://apify.com/thirdwatch/nvd-cve-scraper), [PyPI Package Scraper](https://apify.com/thirdwatch/pypi-package-scraper), and [npm Package Scraper](https://apify.com/thirdwatch/npm-package-scraper).

Last verified: 2026-07

# Actor input Schema

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

Packages as Ecosystem:name or Ecosystem:name@version, for example PyPI:requests@2.31.0 or npm:lodash@4.17.20.

## `vulnerabilityIds` (type: `array`):

Optional exact OSV, GHSA, CVE, PYSEC, or ecosystem advisory IDs.

## `maxResultsPerPackage` (type: `integer`):

Stop after this many unique advisories for each package entry.

## Actor input object example

```json
{
  "packages": [
    "PyPI:requests@2.31.0"
  ],
  "vulnerabilityIds": [
    "GHSA-9hjg-9r4m-mvj7"
  ],
  "maxResultsPerPackage": 10
}
```

# 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": [
        "PyPI:requests@2.31.0"
    ],
    "vulnerabilityIds": [
        "GHSA-9hjg-9r4m-mvj7"
    ],
    "maxResultsPerPackage": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("thirdwatch/osv-vulnerability-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": ["PyPI:requests@2.31.0"],
    "vulnerabilityIds": ["GHSA-9hjg-9r4m-mvj7"],
    "maxResultsPerPackage": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("thirdwatch/osv-vulnerability-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": [
    "PyPI:requests@2.31.0"
  ],
  "vulnerabilityIds": [
    "GHSA-9hjg-9r4m-mvj7"
  ],
  "maxResultsPerPackage": 10
}' |
apify call thirdwatch/osv-vulnerability-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thirdwatch/osv-vulnerability-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/Z6d91eQR7Xrf7w3k2/builds/XBEH9AizuQaqne76r/openapi.json
