# OSV: open source package vulnerabilities

Known vulnerabilities in open source packages across many ecosystems, from the OSV.dev aggregator.

- No API key needed to call
- Source: [OSV.dev \(Open Source Vulnerabilities\)](https://osv.dev/)
- Licence and terms: [per source: CC-BY 4.0, CC0 1.0, MIT and others](https://google.github.io/osv.dev/data/)
- Coverage: open source ecosystems
- Answers are shared and cached for 3600 seconds.

## Questions you can ask

- Does jinja2 2.4.1 have known vulnerabilities? (operation `package_vulnerabilities`)
- What is GHSA-jfh8-c2jp-5v3q? (operation `vulnerability_by_id`)

## Operations

### Known vulnerabilities for a package version

Answers: is this package, at this version, affected by known vulnerabilities, and what version fixes it? Returns ids, aliases \(CVE\), severity and fixed versions. Omit version to list vulnerabilities across versions.

- `ecosystem`: required, string, PyPI \| npm \| Maven \| Go \| crates.io \| NuGet \| RubyGems \| Packagist \| Hex \| Pub \| Debian \| Alpine \| Ubuntu \| Linux \| Android \| GitHub Actions \| Bitnami \| CRAN \| Hackage \| SwiftURL
- `name`: required, string, Package name as the ecosystem spells it.
- `version`: optional, string

Example: Does jinja2 2.4.1 have known vulnerabilities?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"osv","operation":"package_vulnerabilities","params":{"ecosystem":"PyPI","name":"jinja2","version":"2.4.1"}}}
```

Over HTTP:

```
curl '/v1/connectors/osv/package_vulnerabilities?ecosystem=PyPI&name=jinja2&version=2.4.1'
```

### One vulnerability by id

Answers: what is this vulnerability \(GHSA, CVE, PYSEC, RUSTSEC or OSV id\): summary, aliases, severity, affected packages and fixed versions?

- `id`: required, string

Example: What is GHSA-jfh8-c2jp-5v3q?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"osv","operation":"vulnerability_by_id","params":{"id":"GHSA-jfh8-c2jp-5v3q"}}}
```

Over HTTP:

```
curl '/v1/connectors/osv/vulnerability_by_id?id=GHSA-jfh8-c2jp-5v3q'
```

## Source notice

Source: OSV.dev. Each record keeps the licence of the database it came from, identified by the id prefix: for example GitHub Advisory Database \(GHSA\) CC-BY 4.0, PyPI Advisory Database \(PYSEC\) CC-BY 4.0, Go Vulnerability Database \(GO\) CC-BY 4.0, OSS-Fuzz CC-BY 4.0, Rust Advisory Database \(RUSTSEC\) CC0 1.0, Global Security Database CC0 1.0, Drupal MIT. See the terms page for the full list. Attribute the originating database when you reuse a record.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
