{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sectora-io/json-schema/sectora-io-vulnerability-schema.json",
  "title": "Vulnerability",
  "description": "A security vulnerability found during a scan.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sectora-io-openapi.yml#/components/schemas/Vulnerability",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique vulnerability identifier."
    },
    "scan_id": {
      "type": "string",
      "format": "uuid",
      "description": "The scan that discovered this vulnerability."
    },
    "title": {
      "type": "string",
      "description": "Human-readable vulnerability title."
    },
    "severity": {
      "type": "string",
      "enum": [
        "critical",
        "high",
        "medium",
        "low",
        "info"
      ],
      "description": "Severity level of the vulnerability."
    },
    "vuln_type": {
      "type": "string",
      "description": "Vulnerability classification type."
    },
    "url": {
      "type": "string",
      "description": "The URL where the vulnerability was found."
    },
    "description": {
      "type": "string",
      "description": "Detailed description of the vulnerability and its impact."
    },
    "remediation": {
      "type": "string",
      "description": "Recommended steps to fix the vulnerability."
    },
    "cve_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Associated CVE identifier, if applicable."
    },
    "cwe": {
      "type": [
        "string",
        "null"
      ],
      "description": "CWE (Common Weakness Enumeration) classification."
    },
    "cvss": {
      "type": [
        "number",
        "null"
      ],
      "format": "float",
      "description": "CVSS score (0.0 - 10.0)."
    },
    "evidence": {
      "type": [
        "string",
        "null"
      ],
      "description": "Technical evidence supporting the finding (HTTP request/response excerpts, etc.)."
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "confirmed",
        "false_positive",
        "resolved"
      ],
      "description": "Triage status of the vulnerability."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the vulnerability was discovered."
    }
  }
}