{"uid":"cap_g8Sm3F2RIzHsXb2kUjq7z","slug":"saylor-innovations-osv-package-vulnerability-check-55ea4a97","name":"Saylor Innovations OSV Package Vulnerability Check","description":"Open source package vulnerability check on OSV.dev - advisories, aliases, severity and fixed versions for npm, PyPI, Go, Maven, crates.io and more by version","url":"https://saylorinnovations.com/api/security/osv?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","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["ecosystem","package"],"properties":{"package":{"type":"string","description":"Package name, e.g. lodash"},"version":{"type":"string","description":"optional exact version to check"},"ecosystem":{"type":"string","description":"npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet, Packagist, Hex or Pub"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["package","ecosystem","vulnerabilities"],"properties":{"note":{"type":"string","description":"Caveat or context for reading the result"},"source":{"type":"string","description":"Data source the values come from"},"package":{"type":"string"},"version":{"type":["string","null"],"description":"Version identifier"},"ecosystem":{"type":"string","description":"Package ecosystem the record belongs to"},"checked_at":{"type":"string","description":"Time the check was run (UTC)"},"vulnerabilities":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string"]},"url":{"type":["string"]},"aliases":{"type":["array"],"items":{"type":["string"]}},"summary":{"type":["string"]},"fixed_in":{"type":["array"],"items":{"type":["string"]}},"modified":{"type":["string"]},"severity":{"type":["string"]},"published":{"type":["string"]}},"additionalProperties":true},"description":"Known vulnerabilities"},"vulnerability_count":{"type":"number","description":"Number of vulnerability"}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mGP9A8xyujNCSdcHn0UF0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks an open-source package against OSV.dev to return known vulnerabilities, severity scores, aliases, and fixed versions for ecosystems like npm, PyPI, Go, Maven, and crates.io","exampleAgentPrompt":"Can you check if lodash version 4.17.11 on npm has any known vulnerabilities, including their severity and whether a fixed version is available?","exampleUseCases":[{"title":"Pre-deploy dependency security audit","prompt":"Before I deploy, can you check whether requests version 2.25.0 on PyPI has any known security vulnerabilities and what versions are patched?"},{"title":"Scanning a Go module for CVEs","prompt":"Is the Go module golang.org/x/crypto at version 0.0.0-20200622213623 affected by any known CVEs or security advisories?"},{"title":"Checking a Maven library before adding it","prompt":"I'm about to add log4j-core version 2.14.1 from Maven to our project — does it have any known vulnerabilities and what should I upgrade to?"}],"resultDescription":"Returns a JSON object containing the package name, ecosystem, version, a list of vulnerabilities (with IDs, aliases like CVE numbers, severity ratings, affected version ranges, and fixed versions), an overall security score from 0–100, the data source (OSV.dev), and a timestamp for when the data was fetched.","failureModes":["Unknown ecosystem value returns an error or empty result","Package not found in the specified ecosystem returns empty vulnerabilities array","Version not found may fall back to all-version results or return a note","OSV.dev upstream API unavailable causes sources_failed to be populated","Malformed package name returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need fast, structured OSV.dev vulnerability data for a specific open-source package and version across major ecosystems (npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet, etc.). It is ideal for automated dependency scanning in CI/CD pipelines, pre-deploy security checks, or agent workflows that need to validate third-party library safety before installation or deployment. Prefer this over CVE-focused endpoints when the primary concern is package-level vulnerability data rather than raw CVE record details.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T14:36:56.100Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-osv-package-vulnerability-check-55ea4a97"}