{
  "openapi": "3.1.0",
  "info": {
    "title": "CVE.report API",
    "summary": "Free public JSON API for CVE vulnerability records.",
    "description": "CVE.report provides unauthenticated JSON lookups for individual CVE records. Responses combine CVE Program data with NVD enrichment, references, affected products, CVSS data when available, CISA KEV, EPSS, and legacy mappings.",
    "version": "1.0.0",
    "contact": {
      "name": "CVE.report",
      "url": "https://cve.report/api"
    },
    "license": {
      "name": "MITRE CVE Terms of Use",
      "url": "https://cve.report/mitre_license.txt"
    },
    "x-logo": {
      "url": "https://cve.report/cve-logo.png",
      "backgroundColor": "#f4f7fb",
      "altText": "CVE.report logo"
    },
    "x-apisguru-categories": [
      "security"
    ]
  },
  "servers": [
    {
      "url": "https://cve.report",
      "description": "CVE.report public API"
    }
  ],
  "externalDocs": {
    "description": "CVE.report API documentation",
    "url": "https://cve.report/api"
  },
  "tags": [
    {
      "name": "CVE",
      "description": "Common Vulnerabilities and Exposures lookups"
    }
  ],
  "paths": {
    "/api/cve/{cve}.json": {
      "get": {
        "tags": [
          "CVE"
        ],
        "summary": "Get a CVE record",
        "description": "Returns a merged CVE.report JSON record for a CVE identifier. No authentication is required.",
        "operationId": "getCveRecord",
        "parameters": [
          {
            "name": "cve",
            "in": "path",
            "required": true,
            "description": "CVE identifier, for example CVE-2024-3094.",
            "schema": {
              "type": "string",
              "pattern": "^CVE-[0-9]{4}-[0-9]{4,}$",
              "example": "CVE-2024-3094"
            }
          },
          {
            "name": "pretty",
            "in": "query",
            "required": false,
            "description": "Set to 1 to return pretty-printed JSON.",
            "schema": {
              "type": "integer",
              "enum": [
                1
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "CVE record",
            "headers": {
              "Access-Control-Allow-Origin": {
                "description": "Public read-only CORS access.",
                "schema": {
                  "type": "string",
                  "example": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CveRecord"
                },
                "examples": {
                  "sample": {
                    "summary": "CVE-2024-3094",
                    "externalValue": "https://cve.report/api/cve/CVE-2024-3094.json?pretty=1"
                  }
                }
              }
            }
          },
          "404": {
            "description": "CVE record was not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CveRecord": {
        "type": "object",
        "required": [
          "api_version",
          "generated_at",
          "cve",
          "urls",
          "summary"
        ],
        "additionalProperties": true,
        "properties": {
          "api_version": {
            "type": "string",
            "example": "1"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "cve": {
            "type": "string",
            "example": "CVE-2024-3094"
          },
          "urls": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "format": "uri"
            }
          },
          "summary": {
            "$ref": "#/components/schemas/CveSummary"
          },
          "problem_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "metrics": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "references": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reference"
            }
          },
          "affected": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "timeline": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "solutions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "workarounds": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "exploits": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "credits": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "nvd_cpes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "vendor_comments": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "enrichments": {
            "type": "object",
            "additionalProperties": true
          },
          "source_records": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "CveSummary": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "title": {
            "type": "string",
            "example": "CVE-2024-3094"
          },
          "description": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "example": "PUBLISHED"
          },
          "assigner": {
            "type": "string"
          },
          "published_at": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        }
      },
      "Reference": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "name": {
            "type": "string"
          },
          "refsource": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
