{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"5000","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"98569c7b-b075-48a0-ba6e-cd1bfec5002a","catalogType":"api","categories":["developer"],"dataPlatform":"osv","dataPlatformLogoUrl":"https://osv.dev/static/img/logo-dark@4x.png","dataPlatformTranslations":{},"dataProduct":"general","description":"Find OSV vulnerabilities for a package version or Git commit via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Osv, pass parameters such as package, version, and retrieve structured data including matched vulnerability identifier, advisory summary, and affected package ecosystem for release checks and commit investigation, ready for production pipelines and AI agent automation.","descriptionTranslations":{"ar":"ابحث عن ثغرات OSV المعروفة لإصدار حزمة واحد أو التزام Git عبر OpenAny REST، واحصل على سجلات التنبيهات لفحص الإصدارات والتحقيق في الاعتماديات. استخدم السجلات المنظمة في واجهات مراجعة الاعتماديات أو فرز الثغرات، مع إبقاء هوية الحزمة ومراجع قاعدة البيانات مرتبطة بكل نتيجة، وراجع أمثلة الطلبات والمدخلات المدعومة وتسعير التنفيذ المحدد في صفحة التفاصيل.","ja":"OpenAny REST で一つのパッケージ版や Git コミットの既知の OSV 脆弱性を照会し、返されたレコードをリリース確認や依存関係の調査に利用できます。 構造化レコードを依存関係の確認画面や脆弱性のトリアージに利用できます。各検出結果にパッケージの識別情報とデータベース参照を保持し、詳細ページのリクエスト例、対応入力、選択した実装の料金を確認してください。","zh":"通过 OpenAny REST 查询一个软件包版本或 Git 提交的已知 OSV 漏洞，获取漏洞记录，用于版本检查及软件包依赖调查。 可将结构化记录用于依赖检查界面或漏洞分诊流程，为每条发现保留软件包身份与数据库引用；详情页提供请求示例、支持的输入及所选实现的价格。"},"effectContentHtml":"","executionMode":"sync","id":"a2510498-4401-4086-88c8-a9459e172820","includedContentHtml":"","inputs":[{"description":"Query format.","json_schema":{"description":"Query format.","properties":{"commit":{"description":"The commit hash to query for. If specified, `version` should not be set.","type":"string"},"package":{"description":"The package to query against. When a `commit` hash is given, this is\noptional. Use name AND ecosystem OR purl. Do not combine purl with name or ecosystem. OSV validates these semantic combinations.","properties":{"ecosystem":{"description":"Required. The ecosystem for this package.\nFor the complete list of valid ecosystem names, see\n\u003chttps://ossf.github.io/osv-schema/#affectedpackage-field\u003e.","type":"string"},"name":{"description":"Required. Name of the package. Should match the name used in the package\necosystem (e.g. the npm package name). For C/C++ projects integrated in\nOSS-Fuzz, this is the name used for the integration.","type":"string"},"purl":{"description":"Optional. The package URL for this package.","type":"string"}},"type":"object"},"page_token":{"description":"Continuation token from the prior result. In a batch, use the token belonging to the same query item.","type":"string"},"version":{"description":"The version string to query for. A fuzzy match is done against upstream\nversions. If specified, `commit` should not be set. Do not combine top-level version with a version embedded in package.purl; OSV returns 400 for that combination.","type":"string"}},"type":"object"},"location":"body","name":"body","nullable":false,"pointer":"","required":true,"type":"object"}],"logoUrl":"https://osv.dev/static/img/logo-dark@4x.png","method":"POST","name":"OSV Package Vulnerability Query API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eOSV Package Vulnerability Query API\u003c/h2\u003e\n\u003cp\u003ePOST a package identity and version, a PURL, or a commit-based query. Results contain vulnerability records rather than the compact batch projection. If a next_page_token is returned, repeat the same query with page_token until pagination is complete.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eJSON body: package/version, PURL, or commit; optional page_token for continuation.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eosv · OSV Package Vulnerability Query API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eRelease checks\u003c/strong\u003e: Look up known advisories for a specific package version.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eCommit investigation\u003c/strong\u003e: Link a selected Git commit to matching vulnerability records.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003evulns[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMatched vulnerability identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003evulns[].summary\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eAdvisory summary\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003evulns[].affected[].package.ecosystem\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eAffected package ecosystem\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003evulns[].affected[].ranges[].type\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eType used to interpret affected ranges\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003evulns[].references[].url\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource report or advisory link\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request POST \\\n  https://api.openany.si/v1/agent-apis/osv/v1/query \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#34;Content-Type: application/json\u0026#34; \\\n  --data-raw \u0026#39;{\u0026#34;package\u0026#34;:{\u0026#34;ecosystem\u0026#34;:\u0026#34;OSS-Fuzz\u0026#34;,\u0026#34;name\u0026#34;:\u0026#34;mruby\u0026#34;},\u0026#34;version\u0026#34;:\u0026#34;2.1.2\u0026#34;}\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe saved examples include a prior package-query capture and a historical documentation response. The calling template is independent; use the returned package identity, affected ranges and modification time when reviewing matches.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/a2510498-4401-4086-88c8-a9459e172820\"\u003ePublished OSV Package Vulnerability Query API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhich package identity format should I use?\u003c/h3\u003e\n\u003cp\u003eUse package.name with package.ecosystem, or package.purl. Do not combine the two formats; retain ecosystem spelling such as PyPI.\u003c/p\u003e\n\u003ch3\u003eCan I set commit and version together?\u003c/h3\u003e\n\u003cp\u003eNo. Select a commit-based query or a version-based query. A versioned PURL also must not be combined with a top-level version.\u003c/p\u003e\n\u003ch3\u003eDoes an empty page prove there are no matches?\u003c/h3\u003e\n\u003cp\u003eNot if next_page_token is present. Continue with page_token while preserving the original query until no continuation token remains.\u003c/p\u003e\n\u003ch3\u003eIs this the same output as the batch endpoint?\u003c/h3\u003e\n\u003cp\u003eNo. This endpoint returns advisory records; the batch endpoint returns compact id and modified matches for multiple query items.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/osv/osv-batch-vulnerability-query-api\"\u003eOSV Batch Vulnerability Query API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/osv/osv-vulnerability-details-api\"\u003eOSV Vulnerability Details API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/osv/osv-package-vulnerability-query-api?offering=a2510498-4401-4086-88c8-a9459e172820","providerId":"osv","publicPath":"/v1/agent-apis/osv/v1/query","requestContentType":"application/json","revision":2,"samples":[{"http_status":200,"name":"Official example · Live OSV paired capture - 2026-11-19","request":{"body":{"package":{"ecosystem":"OSS-Fuzz","name":"mruby"},"version":"2.1.2"},"headers":{},"path":{},"query":{}},"response_body":{"vulns":[{"affected":[{"database_specific":{"source":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/mruby/OSV-2020-744.yaml"},"ecosystem_specific":{"severity":"HIGH"},"package":{"ecosystem":"OSS-Fuzz","name":"mruby","purl":"pkg:generic/mruby"},"ranges":[{"events":[{"introduced":"9cdf439db52b66447b4e37c61179d54fad6c8f33"},{"fixed":"97319697c8f9f6ff27b32589947e1918e3015503"}],"repo":"https://github.com/mruby/mruby","type":"GIT"}],"versions":["2.1.2","2.1.2-rc","2.1.2-rc2"]}],"details":"OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801\n\n```\nCrash type: Heap-double-free\nCrash state:\nmrb_default_allocf\nmrb_free\nobj_free\n```\n","id":"OSV-2020-744","modified":"2022-04-13T03:04:39.780694Z","published":"2020-07-04T00:00:01.948828Z","references":[{"type":"REPORT","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801"}],"schema_version":"1.7.3","summary":"Heap-double-free in mrb_default_allocf"}]}},{"http_status":200,"name":"Official example · Historical official documentation response","request":{"body":{"package":{"ecosystem":"OSS-Fuzz","name":"mruby"},"version":"2.1.2"},"headers":{},"path":{},"query":{}},"response_body":{"vulns":[{"affected":[{"database_specific":{"source":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/mruby/OSV-2020-744.yaml"},"ecosystem_specific":{"severity":"HIGH"},"package":{"ecosystem":"OSS-Fuzz","name":"mruby","purl":"pkg:generic/mruby"},"ranges":[{"events":[{"introduced":"9cdf439db52b66447b4e37c61179d54fad6c8f33"},{"fixed":"97319697c8f9f6ff27b32589947e1918e3015503"}],"repo":"https://github.com/mruby/mruby","type":"GIT"}],"versions":["2.1.2","2.1.2-rc","2.1.2-rc2"]}],"details":"OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801\n\n```\nCrash type: Heap-double-free\nCrash state:\nmrb_default_allocf\nmrb_free\nobj_free\n```\n","id":"OSV-2020-744","modified":"2022-04-13T03:04:39.780694Z","published":"2020-07-04T00:00:01.948828Z","references":[{"type":"REPORT","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801"}],"schema_version":"1.4.0","summary":"Heap-double-free in mrb_default_allocf"}]}}],"seoDescription":"Find OSV vulnerabilities via REST or MCP powered by Osv. Pay per call, no subscription. Ready for developers and AI agents with one API key.","updatedAt":"2026-12-03T02:49:09.843Z","usageInstructionsHtml":""}}