{"uid":"cap_wiS8mB7NlfpAWJVEnG3j2","slug":"osv-dependency-batch-scan-b3a7083a","name":"OSV Dependency Batch Scan","description":"Use when an agent must scan a project's dependencies before install, upgrade or merge. Input: packages, up to 20 ecosystem:name@version, comma-separated (npm, pypi, go, cargo/crates.io, maven, nuget...). Output: JSON summary (vulnerable count, critical/high/moderate/low), per package vulnerable yes/no, counts, top advisories with CVE, severity, fixed versions, osv.dev links. Data: OSV.dev, CC BY 4.0. Example: ?packages=npm:lodash@4.17.15,pypi:django@3.2.0","url":"https://1gateway.dev/v1/dev/vulnerabilities/batch?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["packages"],"properties":{"packages":{"type":"string","maxLength":4000,"description":"1-20 packages as ecosystem:name@version, comma-separated (npm:lodash@4.17.15, pypi:django@3.2.0, go…"},"ecosystem":{"type":"string","maxLength":20,"description":"Default ecosystem for items written as name@version"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["summary","results","attribution","note"],"properties":{"note":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"top":{"type":"array"},"count":{"type":"integer"},"package":{"type":"object","additionalProperties":true},"bySeverity":{"type":"object","additionalProperties":true},"vulnerable":{"type":"boolean"},"fixedVersionsMentioned":{"type":"array"}},"additionalProperties":true}},"summary":{"type":"object","properties":{"low":{"type":"integer"},"high":{"type":"integer"},"checked":{"type":"integer"},"critical":{"type":"integer"},"moderate":{"type":"integer"},"packages":{"type":"integer"},"advisories":{"type":"integer"},"vulnerable":{"type":"integer"}},"additionalProperties":true},"attribution":{"type":"string"}},"additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0045","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0045/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8v-YPiElo4o8egN-upPrL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0045","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans up to 20 packages across multiple ecosystems for known vulnerabilities using OSV.dev data, returning severity-bucketed advisory summaries with CVEs and fix versions.","exampleAgentPrompt":"Before I install these packages, can you check them for known vulnerabilities: npm:lodash@4.17.15, pypi:django@3.2.0, and go:golang.org/x/net@0.17.0? I need severity breakdowns and any CVEs with fixed versions.","exampleUseCases":[{"title":"Pre-merge dependency security gate","prompt":"We're about to merge a PR that bumps several dependencies. Can you scan these for vulnerabilities before we approve it: npm:axios@0.21.1, npm:express@4.17.1, pypi:requests@2.25.1, pypi:pillow@8.3.1?"},{"title":"CI pipeline vulnerability audit","prompt":"Run a vulnerability check on our Go and Cargo dependencies before the release build: go:golang.org/x/net@0.17.0, go:github.com/gin-gonic/gin@1.7.0, cargo:time@0.1.45, cargo:openssl@0.10.35 — flag anything critical or high severity."},{"title":"Evaluating open source library safety","prompt":"I'm considering adding lodash@4.17.20 and moment@2.29.1 from npm to our project — do either of them have known CVEs, and if so, what versions fix the issues?"}],"resultDescription":"A JSON object with a summary (total packages checked, counts of critical/high/moderate/low advisories) and per-package results including: vulnerable true/false, total advisory count, severity breakdown by bucket, top advisories with CVE ID, severity label, short summary, fixed versions array, and a direct osv.dev link. Attribution to OSV.dev under CC BY 4.0 is included.","failureModes":["Missing or malformed packages parameter returns a 400 error","More than 20 packages in one request may be rejected or truncated","Unknown ecosystem prefix causes that package entry to fail or be skipped","Version string format errors (e.g. missing @ separator) result in parse failures","Payment not settled (x402) causes 402 response before scan executes","OSV.dev upstream outage may result in 503 or empty advisory data"],"whenToPreferThis":"Use this endpoint when you need a quick, multi-ecosystem vulnerability scan of specific versioned packages without signing up for a dedicated security tool. It is ideal for pre-install, pre-merge, or pre-deploy checks in agentic CI/CD pipelines. It supports heterogeneous stacks (npm, pypi, go, cargo, maven, nuget) in a single call, making it superior to single-ecosystem scanners when projects mix languages. Prefer it over full SBOM scanning tools when you have a known list of up to 20 packages and need fast, structured CVE output with fix versions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T14:10:28.904Z","isFirstParty":false,"canonicalSlug":"osv-dependency-batch-scan-b3a7083a"}