{"openapi":"3.1.0","info":{"title":"FlawDB API","version":"1","description":"A merged vulnerability feed (CVE List, NVD, GitHub Advisory Database, OSV, CISA KEV, FIRST EPSS). Facts come from the sources; AI fields are labelled. Keep the `attribution` notices when you republish. Anonymous: 60 requests/hour per IP. API keys (https://flawdb.com/account/api-keys): 1,000/day free, 10,000/day Pro. MCP server: https://flawdb.com/mcp. Guide: https://flawdb.com/llms-full.txt","license":{"name":"Data licences vary by source; see each entry's attribution","url":"https://flawdb.com/about"}},"servers":[{"url":"https://flawdb.com"}],"security":[{},{"apiKey":[]}],"paths":{"/api/v1/entries":{"get":{"operationId":"listEntries","summary":"Recent entries, newest first","description":"Covers entries published since 2026-11-10 (plus older ones added to CISA KEV); single-entry lookups work for every year.","parameters":[{"name":"severity","in":"query","required":false,"description":"Comma list: critical,high,medium,low,unknown","schema":{"type":"string"}},{"name":"kev","in":"query","required":false,"description":"true: only CISA KEV entries","schema":{"type":"boolean"}},{"name":"kind","in":"query","required":false,"description":"cve or advisory","schema":{"enum":["cve","advisory"]}},{"name":"tech","in":"query","required":false,"description":"Technology slug (see /api/v1/technologies)","schema":{"type":"string"}},{"name":"vendor","in":"query","required":false,"description":"Vendor name (lower-case)","schema":{"type":"string"}},{"name":"package","in":"query","required":false,"description":"ecosystem:name, e.g. npm:lodash","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"Only entries modified at or after this ISO time (for a change feed use /api/v1/changes)","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 50)","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EntryListItem"}},"next_cursor":{"type":["string","null"]}}}}}},"304":{"description":"Not modified (If-None-Match)"},"401":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/entries/{id}":{"get":{"operationId":"getEntry","summary":"One entry by CVE, GHSA or OSV ID (any year)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"CVE-2021-44228"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Entry"}}}},"301":{"description":"Alias: Location is the canonical entry"},"304":{"description":"Not modified (If-None-Match)"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/search":{"get":{"operationId":"searchEntries","summary":"Full-text search with operators","description":"Covers entries published since 2026-11-10 (plus older ones added to CISA KEV); single-entry lookups work for every year. Operators: tech: vendor: package: affects: severity: cvss: epss: kev: exploit: published: — e.g. \"tech:wordpress kev:true\", \"affects:npm/lodash@4.17.20\", \"remote code cvss:>=9 published:<30d\". Invalid operators are ignored and listed in warnings.","parameters":[{"name":"q","in":"query","required":true,"description":"2–200 characters: words and/or operators","schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"description":"newest (default) or relevance","schema":{"enum":["newest","relevance"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EntryListItem"}},"next_cursor":{"type":["string","null"]},"filters":{"type":"object"},"warnings":{"type":"array","items":{"type":"string"}},"scope":{"const":"hot"},"note":{"type":"string"}}},{"type":"object","required":["redirect"],"properties":{"redirect":{"type":"string","description":"The query was an exact ID"}}}]}}}},"401":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/changes":{"get":{"operationId":"listChanges","summary":"Entries whose content changed since a time (oldest first)","description":"New, updated, added to CISA KEV or rejected. EPSS-only updates don't count. Store next_since and pass it as since next time; it is inclusive, so skip items you already have with the same id and changed_at. Follow next_cursor while it is not null.","parameters":[{"name":"since","in":"query","required":true,"description":"ISO time","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Page size (1–100, default 50)","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["items","next_cursor","next_since"],"properties":{"items":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/EntryListItem"},{"type":"object","properties":{"status":{"enum":["published","rejected","disputed"]},"changed_at":{"type":"string","format":"date-time"}}}]}},"next_cursor":{"type":["string","null"]},"next_since":{"type":"string","format":"date-time"}}}}}},"304":{"description":"Not modified (If-None-Match)"},"401":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/check":{"post":{"operationId":"checkStack","summary":"Which recent vulnerabilities affect these exact package versions","description":"Send installed versions or a lockfile (package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, yarn.lock, composer.lock, requirements.txt, poetry.lock, uv.lock, Cargo.lock, go.sum, Gemfile.lock). Up to 5000 packages or 5 MB. Nothing is stored. Covers entries published since 2026-11-10 (plus older ones added to CISA KEV); single-entry lookups work for every year.","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["packages"],"properties":{"packages":{"type":"array","maxItems":5000,"items":{"type":"object","required":["ecosystem","name","version"],"properties":{"ecosystem":{"type":"string","examples":["npm","PyPI","Packagist","crates.io","Go","RubyGems","Maven","NuGet","WordPress","WordPress-theme","WordPress-core","Hex","Pub"]},"name":{"type":"string"},"version":{"type":"string","description":"Exact installed version, not a range"}}}},"include_dev":{"type":"boolean","default":true}}},{"type":"object","required":["lockfile_name","lockfile_content"],"properties":{"lockfile_name":{"type":"string","examples":["package-lock.json","npm-shrinkwrap.json","pnpm-lock.yaml","yarn.lock","composer.lock","requirements.txt","poetry.lock","uv.lock","Cargo.lock","go.sum","Gemfile.lock"]},"lockfile_content":{"type":"string"},"include_dev":{"type":"boolean","default":true}}}]},"example":{"packages":[{"ecosystem":"npm","name":"lodash","version":"4.17.20"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"checked":{"type":"integer"},"summary":{"type":"object","properties":{"affected":{"type":"integer"},"unknown":{"type":"integer"},"not_affected":{"type":"integer"}}},"findings":{"type":"array","items":{"type":"object","properties":{"package":{"type":"object"},"status":{"enum":["affected","unknown"],"description":"unknown: a range exists but couldn't be compared; read affected_range"},"affected_range":{"type":["string","null"]},"fixed":{"type":"array","items":{"type":"string"}},"entry":{"$ref":"#/components/schemas/EntryListItem"},"package_url":{"type":"string"}}}},"skipped":{"type":"array","items":{"type":"object"}},"notes":{"type":"array","items":{"type":"string"}},"attribution":{"type":"array","items":{"$ref":"#/components/schemas/Attribution"}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/lookup":{"post":{"operationId":"lookupEntries","summary":"Severity, KEV, EPSS and fixed versions for up to 100 CVE or GHSA IDs","description":"Send IDs, or any text that contains them. Up to 100 IDs; archived (older) entries 25 per request, the rest come back in not_checked. Nothing is stored.","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ids"],"properties":{"ids":{"type":"array","items":{"type":"string"},"maxItems":1000}}},{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":200000}}}]},"example":{"ids":["CVE-2021-44228","CVE-2024-3094"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/EntryListItem"},{"type":"object","properties":{"requested":{"type":"string","description":"The ID as sent, when it is an alias of the entry"},"fixed":{"type":"array","items":{"type":"string"}},"kev":{"type":"object","properties":{"listed":{"type":"boolean"},"added":{"type":["string","null"]},"due":{"type":["string","null"]},"ransomware":{"type":["boolean","null"]}}},"attribution":{"type":"array","items":{"$ref":"#/components/schemas/Attribution"},"description":"Per-record notices the item's data requires (Wordfence)"}}}]}},"not_found":{"type":"array","items":{"type":"string"}},"not_checked":{"type":"array","items":{"type":"string"}},"truncated":{"type":"boolean"},"attribution":{"type":"array","items":{"$ref":"#/components/schemas/Attribution"}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/cvss":{"get":{"operationId":"scoreCvss","summary":"Score a CVSS 3.0, 3.1 or 4.0 vector and list recent entries with the same vector","description":"Anonymous calls have their own bucket of 600 an hour per IP, separate from the general 60.","parameters":[{"name":"vector","in":"query","required":true,"schema":{"type":"string","maxLength":500},"example":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"enum":["3.0","3.1","4.0"]},"vector":{"type":"string","description":"Canonical metric order"},"base_score":{"type":"number","description":"Base metrics only (what CVE records publish as baseScore)"},"score":{"type":"number","description":"With threat (4.0) or temporal (3.x) metrics; equals base_score when there are none"},"rating":{"enum":["none","low","medium","high","critical"]},"adjusted":{"type":"boolean"},"examples":{"type":"array","items":{"$ref":"#/components/schemas/EntryListItem"}},"attribution":{"type":"array","items":{"$ref":"#/components/schemas/Attribution"}}}}}}},"401":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/technologies":{"get":{"operationId":"listTechnologies","summary":"Technology taxonomy (slugs for the tech filter)","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array"}}}}}},"401":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"ctk_live_… key from /account/api-keys"}},"schemas":{"Entry":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","description":"Canonical ID: a CVE ID when one exists, else GHSA/OSV"},"aliases":{"type":"array","items":{"type":"string"}},"kind":{"type":"string","enum":["cve","advisory"]},"tier":{"type":"string","enum":["hot","cold"],"description":"hot: recent, full-text searchable; cold: archived"},"status":{"type":"string","enum":["published","rejected","disputed"]},"title":{"type":"string"},"description":{"type":["string","null"]},"ai_summary":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"},"model":{"type":"string"},"label":{"type":"string"}},"required":["text","model","label"],"additionalProperties":false},{"type":"null"}],"description":"AI-written, labelled; never a source of facts"},"severity":{"type":"string","enum":["critical","high","medium","low","unknown"]},"cvss":{"anyOf":[{"type":"object","properties":{"score":{"type":"number"},"version":{"type":"string"},"vector":{"type":["string","null"]},"source":{"type":"string"}},"required":["score","version","vector","source"],"additionalProperties":false},{"type":"null"}]},"scores":{"type":"array","items":{"type":"object","properties":{"score":{"type":"number"},"version":{"type":"string"},"vector":{"type":"string"},"source":{"type":"string","enum":["cna","adp","nvd","ghsa","osv","wordfence","euvd"]}},"required":["score","version","source"],"additionalProperties":false}},"cwe":{"type":"array","items":{"type":"string"}},"remote":{"type":["boolean","null"]},"remote_unauth":{"type":["boolean","null"]},"epss":{"anyOf":[{"type":"object","properties":{"score":{"type":"number"},"percentile":{"type":"number"},"date":{"type":"string","description":"YYYY-MM-DD"}},"required":["score","percentile","date"],"additionalProperties":false},{"type":"null"}]},"kev":{"type":"object","properties":{"listed":{"type":"boolean"},"added":{"anyOf":[{"type":"string","description":"YYYY-MM-DD"},{"type":"null"}]},"due":{"anyOf":[{"type":"string","description":"YYYY-MM-DD"},{"type":"null"}]},"ransomware":{"type":["boolean","null"]}},"required":["listed","added","due","ransomware"],"additionalProperties":false},"exploit":{"type":"object","properties":{"public":{"type":"boolean"},"exploitdb_ids":{"type":"array","items":{"type":"number"}}},"required":["public","exploitdb_ids"],"additionalProperties":false},"affected":{"type":"array","items":{"type":"object","properties":{"ecosystem":{"type":"string"},"name":{"type":"string"},"affected":{"type":"string"},"fixed":{"type":"array","items":{"type":"string"}},"source":{"type":"string","enum":["cvelist","nvd","ghsa","osv","euvd","exploitdb","wordfence","drupal"]}},"required":["ecosystem","name","fixed","source"],"additionalProperties":false}},"affected_products":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string"},"product":{"type":"string"},"versions":{"type":"string"},"source":{"type":"string","enum":["cvelist","nvd","ghsa","osv","euvd","exploitdb","wordfence","drupal"]}},"required":["vendor","product","versions","source"],"additionalProperties":false}},"ai_versions":{"anyOf":[{"type":"object","properties":{"affected":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string"},"text":{"type":"string"},"quote":{"type":"string"}},"required":["product","text","quote"],"additionalProperties":false}},"fixed":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string"},"version":{"type":"string"},"quote":{"type":"string"}},"required":["product","version","quote"],"additionalProperties":false}},"model":{"type":"string"},"label":{"type":"string"}},"required":["affected","fixed","model","label"],"additionalProperties":false},{"type":"null"}],"description":"AI-extracted versions, each with the verbatim quote it came from"},"mitigation":{"type":"string"},"technologies":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"method":{"type":"string"}},"required":["slug","name","method"],"additionalProperties":false}},"references":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"kind":{"type":"string","enum":["vendor","patch","exploit","wordfence","article","other"]}},"required":["url","kind"],"additionalProperties":false}},"workarounds":{"type":["string","null"]},"vendors":{"type":"array","items":{"type":"string"}},"products":{"type":"array","items":{"type":"string"}},"cpes":{"type":"array","items":{"type":"string"}},"published_at":{"type":"string","description":"ISO 8601 timestamp"},"modified_at":{"type":"string","description":"ISO 8601 timestamp"},"promoted_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"attribution":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"},"license_url":{"type":"string"}},"required":["source","text","url"],"additionalProperties":false},"description":"Required notices and links; keep them when you republish"},"links":{"type":"object","properties":{"html":{"type":"string"},"markdown":{"type":"string"},"json":{"type":"string"}},"required":["html","markdown","json"],"additionalProperties":false}},"required":["id","aliases","kind","tier","status","title","description","ai_summary","severity","cvss","scores","cwe","remote","remote_unauth","epss","kev","exploit","affected","affected_products","ai_versions","mitigation","technologies","references","workarounds","vendors","products","cpes","published_at","modified_at","promoted_at","attribution"],"additionalProperties":false,"description":"One merged vulnerability entry (FlawDB API §2)"},"EntryListItem":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["cve","advisory"]},"title":{"type":"string"},"severity":{"type":"string","enum":["critical","high","medium","low","unknown"]},"cvss":{"anyOf":[{"type":"object","properties":{"score":{"type":"number"}},"required":["score"],"additionalProperties":false},{"type":"null"}]},"kev":{"type":"object","properties":{"listed":{"type":"boolean"},"added":{"anyOf":[{"type":"string","description":"YYYY-MM-DD"},{"type":"null"}]},"due":{"anyOf":[{"type":"string","description":"YYYY-MM-DD"},{"type":"null"}]}},"required":["listed","added","due"],"additionalProperties":false},"exploit":{"type":"object","properties":{"public":{"type":"boolean"}},"required":["public"],"additionalProperties":false},"epss":{"anyOf":[{"type":"object","properties":{"score":{"type":"number"},"percentile":{"type":"number"}},"required":["score","percentile"],"additionalProperties":false},{"type":"null"}]},"technologies":{"type":"array","items":{"type":"string"}},"vendor":{"description":"Vendor named by the source; shown when no technology matched","type":["string","null"]},"published_at":{"type":"string","description":"ISO 8601 timestamp"},"modified_at":{"type":"string","description":"ISO 8601 timestamp"},"links":{"type":"object","properties":{"html":{"type":"string"}},"required":["html"],"additionalProperties":false}},"required":["id","kind","title","severity","cvss","kev","exploit","epss","technologies","vendor","published_at","modified_at","links"],"additionalProperties":false},"Attribution":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"},"license_url":{"type":"string"}},"required":["source","text","url"],"additionalProperties":false}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}}}}}}}}}}}