# Open Source Vulnerability Feed: OSV Advisories & Malware (`datacrate/osv-vulnerability-feed`) Actor

New open-source security advisories (CVE, GHSA) and malicious-package reports from OSV.dev for npm, PyPI, Go, Maven, Rust and more. Severity, CVSS score, fixed versions, delta mode. No API key.

- **URL**: https://apify.com/datacrate/osv-vulnerability-feed.md
- **Developed by:** [Data Crate](https://apify.com/datacrate) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.96 / 1,000 advisory returneds

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

## Open Source Vulnerability Feed: OSV Advisories & Malicious Packages

Follow new open-source security advisories and malicious-package reports from the **OSV.dev** database (GitHub Advisory Database, PyPI, Go, RustSec, OpenSSF malicious packages and more) for **npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet, Packagist** and other ecosystems. Built for security teams, DevSecOps, SBOM and dependency-monitoring tools, and newsletter or alert builders. No API key, no login.

**First run costs about $0.024** (20 advisories at $0.0012 each, plus the standard Apify start event). The default input returns the newest advisories for npm and PyPI in a few seconds.

### What you get

- **Recent feed**: everything new or updated in the last N days per ecosystem, newest first, with severity, CVSS score and fixed versions.
- **Package check**: all known advisories for specific packages or exact versions (`npm:lodash@4.17.15`).
- **Malicious packages**: OpenSSF malicious-package reports (typosquats, hijacked releases) as their own row type.
- **Delta mode**: only advisories new or updated since your last run, with an `isNew` flag.
- **Clean schema**: CVE id, aliases, CWE ids, affected package + introduced/fixed versions, references ranked advisory > fix > package, and the source licence on every row.

### Sample output

```json
{
  "id": "GHSA-q87h-c5m7-659j",
  "type": "vulnerability",
  "cve": "CVE-2026-132277",
  "severity": "moderate",
  "cvssScore": 5.3,
  "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
  "summary": "Inscriptis: Quadratic memory growth from sibling <table> elements in get_text()",
  "published": "2026-11-20T23:48:51Z",
  "modified": "2026-11-21T00:00:04.977540490Z",
  "ecosystems": ["PyPI"],
  "packages": [{ "ecosystem": "PyPI", "name": "inscriptis", "purl": "pkg:pypi/inscriptis", "introduced": ["2.0.0"], "fixedVersions": ["2.7.6"] }],
  "hasFix": true,
  "fixedVersions": ["2.7.6"],
  "cweIds": ["CWE-400", "CWE-407"],
  "osvUrl": "https://osv.dev/vulnerability/GHSA-q87h-c5m7-659j",
  "license": "CC-BY-4.0",
  "isNew": null
}
```

### Input

| Field | What it does |
|---|---|
| `mode` | `recent` (feed) or `packages` (check specific packages). Default `recent`. |
| `ecosystems` | Ecosystems to follow in recent mode. Default `npm`, `PyPI`. Aliases like `python`, `rust`, `php` work. |
| `sinceDays` | Window in days, 1 to 90. Default 2. Use 1 on a daily schedule. |
| `dateField` | `modified` (new or updated) or `published` (brand new only). |
| `minSeverity` | `any`, `low`, `moderate`, `high`, `critical`. Does not apply to malware rows. |
| `includeMalware` | Include malicious-package reports. Default on. |
| `onlyWithFix`, `requireCve`, `includeWithdrawn` | Extra filters. |
| `packageNames` | Optional name filter for recent mode (substring, case-insensitive). |
| `packages` | Packages mode: `ecosystem:name` or `ecosystem:name@version`. |
| `onlyNewSinceLastRun`, `stateKey` | Delta mode and the name of its saved state. |
| `maxItems` | Max advisories (billed per advisory), default 25. |

An empty input `{}` works: it returns the newest npm and PyPI advisories from the last 2 days.

### Pricing

Pay per event: **one `advisory-returned` event per advisory row**, with volume discounts on higher Apify plans. Rows you filter out are never billed. Packages with no known advisories return no rows and cost nothing beyond the start event.

### FAQ

**Where does the data come from?** The official OSV.dev open data exports and API (Google-run, free, no key). Nothing is scraped from websites.

**What is the licence?** Each record keeps the licence of its source database: GitHub Advisory Database, PyPI and Go advisories are CC-BY 4.0, RustSec and GSD are CC0, OpenSSF malicious packages are Apache 2.0. Every row carries `license` and an attribution line; please keep attribution when you redistribute. Records from sources that forbid commercial redistribution (Chainguard) are never returned.

**How fresh is it?** OSV exports hourly; the feed reflects the last export.

**Does it scan my lockfile?** No: you pass package names and versions. Use `packages` mode with versions to see which advisories hit those exact versions.

**Why is cvssScore sometimes empty?** Score is calculated from CVSS v3.x vectors. Records that only carry CVSS v4 keep the vector and the source severity label but no numeric score.

**How do I get daily alerts?** Schedule the actor daily with `sinceDays: 1` and `onlyNewSinceLastRun: true`, then add a webhook or the Apify integrations (Slack, email, Make, Zapier) on run success. The dataset also works through the API and as an MCP tool in Apify MCP.

### Related actors

- Exploited Vulnerabilities Feed (CISA KEV): which CVEs are being exploited now.
- Package Registry Stats: downloads, dependents, release health for npm, PyPI, Maven, Cargo and more.
- Hacker News Monitor and Stack Exchange Question Monitor for developer discussion.

### Changelog

- 1.0: first release. Recent feed, package check, malware rows, delta mode, CVSS v3 scoring.

# Actor input Schema

## `mode` (type: `string`):

recent = newest advisories per ecosystem (a feed you can schedule). packages = every known advisory for specific packages or exact versions (a dependency check).

## `ecosystems` (type: `array`):

Package ecosystems to follow. Accepted: npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet, Packagist, Hex, Pub, Hackage, GitHub Actions, CRAN, SwiftURL (aliases such as python, rust, php also work).

## `sinceDays` (type: `integer`):

Advisories published or updated in this window (1 to 90). Use 1 for a daily feed.

## `dateField` (type: `string`):

modified = new or updated advisories. published = only advisories first published inside the window.

## `minSeverity` (type: `string`):

Drop vulnerabilities below this level. Malicious-package reports are not rated and are controlled by the next switch.

## `includeMalware` (type: `boolean`):

Include OpenSSF malicious-package (MAL-) records, e.g. typosquats and hijacked releases.

## `onlyWithFix` (type: `boolean`):

Keep only records that list a patched version.

## `requireCve` (type: `boolean`):

Keep only records that carry a CVE alias.

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

Withdrawn records are normally dropped.

## `packageNames` (type: `array`):

Optional. Keep only advisories whose affected package name equals or contains one of these (case-insensitive), e.g. react, django.

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

One per line as ecosystem:name or ecosystem:name@version, e.g. npm:lodash@4.17.15, PyPI:django, Maven:org.apache.logging.log4j:log4j-core@2.14.0, Go:github.com/gin-gonic/gin. With a version only advisories affecting that version are returned.

## `onlyNewSinceLastRun` (type: `boolean`):

Remembers what each run returned (per State key) and skips it next time. Rows also carry an isNew flag once a baseline exists. Recent mode only.

## `stateKey` (type: `string`):

Name of the saved delta state. Use different keys for different schedules.

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

Stop after this many advisories (billed per advisory).

## Actor input object example

```json
{
  "mode": "recent",
  "ecosystems": [
    "npm",
    "PyPI"
  ],
  "sinceDays": 2,
  "dateField": "modified",
  "minSeverity": "any",
  "includeMalware": true,
  "onlyWithFix": false,
  "requireCve": false,
  "includeWithdrawn": false,
  "packages": [
    "npm:lodash@4.17.15",
    "PyPI:django@3.2",
    "Maven:org.apache.logging.log4j:log4j-core@2.14.0"
  ],
  "onlyNewSinceLastRun": false,
  "stateKey": "default",
  "maxItems": 20
}
```

# Actor output Schema

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

One row per security advisory or malicious-package report: severity, CVSS, affected packages, fixed versions and references.

# 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 = {
    "mode": "recent",
    "ecosystems": [
        "npm",
        "PyPI"
    ],
    "sinceDays": 2,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/osv-vulnerability-feed").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 = {
    "mode": "recent",
    "ecosystems": [
        "npm",
        "PyPI",
    ],
    "sinceDays": 2,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/osv-vulnerability-feed").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 '{
  "mode": "recent",
  "ecosystems": [
    "npm",
    "PyPI"
  ],
  "sinceDays": 2,
  "maxItems": 20
}' |
apify call datacrate/osv-vulnerability-feed --silent --output-dataset

```

## MCP server setup

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

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/5LRd4n9zaV1alMuqC/builds/a8ik0YsLhFMpKDTD0/openapi.json
