OSV.dev Package Advisory Query
Query open-source vulnerability advisories on Google OSV.dev by package name, ecosystem (npm, PyPI, Go, Cargo, Maven), and optional version.
curl -sG "https://api.agentapigate.ai/v1/security/osv/vulns_query" \ --data-urlencode "package_name=lodash" \ --data-urlencode "ecosystem=npm" \ --data-urlencode "limit=15" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# OSV.dev Package Advisory Query (`security.osv.vulns_query`) **package_name**: lodash · **ecosystem**: npm · **count**: 10 ## vulns - [1] id: GHSA-29mw-wpgm-hmr9, aliases: CVE-2020-28500, summary: Regular Expression Denial of Service (ReDoS) in lodash, published: 2022-01-06T20:30:46Z, modified: 2025-09-29T21:12:31.102523Z - [2] id: GHSA-35jh-r3h4-6jhm, aliases: CVE-2021-23337, summary: Command Injection in lodash, published: 2021-05-06T16:05:51Z, modified: 2026-10-17T02:55:38.085813876Z - [3] id: GHSA-4xc9-xhrj-v574, aliases: CVE-2018-16487, summary: Prototype Pollution in lodash, published: 2019-02-07T18:16:48Z, modified: 2025-08-12T21:55:35.778975Z - [4] id: GHSA-f23m-r3pf-42rh, aliases: CVE-2026-2950, summary: lodash vulnerable to prototype pollution via array-path bypass in `_.unset`, `_.omit`, and `_.pullAt, published: 2026-04-01T23:50:27Z, modified: 2026-11-03T15:45:08.465610798Z - [5] id: GHSA-fvqr-27wr-82fm, aliases: CVE-2018-3721, summary: Prototype Pollution in lodash, published: 2018-07-26T15:14:52Z, modified: 2025-08-12T21:55:16.003066Z - [6] id: GHSA-jf85-cpcp-j695, aliases: CVE-2019-10744, SNYK-JS-LODASH-450202, summary: Prototype Pollution in lodash, published: 2019-07-10T19:45:23Z, modified: 2026-09-10T03:47:55.238868631Z - [7] id: GHSA-p6mc-m468-83gw, aliases: CVE-2020-8203, summary: Prototype Pollution in lodash, published: 2020-07-15T19:15:48Z, modified: 2025-08-12T21:56:17.174859Z - [8] id: GHSA-r5fr-rjxr-66jc, aliases: CVE-2026-4800, summary: lodash vulnerable to Code Injection via `_.template` imports key names, published: 2026-04-01T23:51:12Z, modified: 2026-10-17T02:56:15.633068434Z - [9] id: GHSA-x5rq-j2xg-h7qm, aliases: CVE-2019-1010266, SNYK-JS-LODASH-73639, summary: Regular Expression Denial of Service (ReDoS) in lodash, published: 2019-07-19T16:13:07Z, modified: 2026-09-10T03:48:25.206281974Z - [10] id: GHSA-xxjr-mmjv-4gpg, aliases: CVE-2025-13465, summary: Lodash has Prototype Pollution Vulnerability in `_.unset`, `_.omit`, and `_.pullAt` functions, published: 2026-01-21T23:01:22Z, modified: 2026-11-04T03:15:10.832238351Z
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:security.osv.vulns_query · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| package_name | string | required | lodash | Open-source package name (e.g. lodash, jinja2, requests, tokio) |
| ecosystem | string | optional | npm | OSV ecosystem name (e.g. npm, PyPI, Go, crates.io, Maven, NuGet) |
| version | string | optional | — | Optional exact package version to filter affected advisories (e.g. 4.17.19) |
| limit | number | optional | 15 | Max advisories returned (1-50) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | security_osv_vulns_query | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 254 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 2292t → 556t (-76%) | Partner credit: eligible |
More security.osv Sibling Endpoints
Query Google/OSV vulnerability database for known security advisories and CVEs affecting npm, PyPI, crates.io, Go, Maven, or NuGet packages.
Query Google OSV.dev open-source vulnerabilities by vulnerability ID (GHSA/CVE/PYSEC/RUSTSEC) or by ecosystem + package_name.
Frequently Asked Questions
How do I call OSV.dev Package Advisory Query (security.osv.vulns_query) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/security/osv/vulns_query with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool security_osv_vulns_query on https://mcp.agentapigate.ai/mcp.
What does security.osv.vulns_query cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on security.osv.vulns_query?
Passing ?format=md transforms the response into normalized Markdown (~556 tokens vs ~2292 raw tokens, saving 76% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only intel endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["security.osv.vulns_query"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.