> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leen.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get NVD Enrichment Data for CVEs

> Get NVD Enrichment Data for CVEs



## OpenAPI

````yaml get /enrichments/nvd
openapi: 3.1.0
info:
  title: Leen Security API
  version: 0.0.1
servers:
  - description: Production API (US)
    url: https://api.leen.dev/v1
  - description: Production API (EU)
    url: https://api.eu-c1.leen.dev/v1
  - description: Production API (APAC)
    url: https://api.ap-se2.leen.dev/v1
security: []
paths:
  /enrichments/nvd:
    get:
      tags:
        - enrichments
      summary: Get NVD Enrichment Data for CVEs
      description: Get NVD Enrichment Data for CVEs
      operationId: get_nvd_enrichment
      parameters:
        - in: query
          name: cve
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cve
        - description: >-
            Only records whose `updated_at` is at or after this time. Leen bumps
            `updated_at` whenever any field on a record changes, so this is the
            filter for an incremental sync: it returns records that are new and
            records that changed, and nothing that has stood still. Example:
            `2021-01-01T00:00:00+00:00`.
          in: query
          name: updatedSince
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: >-
              Only records whose `updated_at` is at or after this time. Leen
              bumps `updated_at` whenever any field on a record changes, so this
              is the filter for an incremental sync: it returns records that are
              new and records that changed, and nothing that has stood still.
              Example: `2021-01-01T00:00:00+00:00`.
            examples:
              - '2021-01-01T00:00:00+00:00'
            title: Updatedsince
        - description: >-
            How many records to return per page. The walk is the same either
            way; a larger page means fewer round trips and more memory per
            response.
          in: query
          name: limit
          required: false
          schema:
            default: 100
            description: >-
              How many records to return per page. The walk is the same either
              way; a larger page means fewer round trips and more memory per
              response.
            maximum: 500
            minimum: 1
            title: Limit
            type: integer
        - description: >-
            Where to start, counted in records. Offset paging is stable only
            while the underlying data is; prefer the cursor for anything
            long-running.
          in: query
          name: offset
          required: false
          schema:
            default: 0
            description: >-
              Where to start, counted in records. Offset paging is stable only
              while the underlying data is; prefer the cursor for anything
              long-running.
            minimum: 0
            title: Offset
            type: integer
        - description: >-
            Skip counting the total. Counting is the expensive half of a large
            query, so set this when you are walking every page anyway and never
            read `total`. `total` comes back null.
          in: query
          name: excludeTotal
          required: false
          schema:
            default: false
            description: >-
              Skip counting the total. Counting is the expensive half of a large
              query, so set this when you are walking every page anyway and
              never read `total`. `total` comes back null.
            title: Excludetotal
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OffsetPaginatedResponse_NvdResponseModel_'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    OffsetPaginatedResponse_NvdResponseModel_:
      properties:
        count:
          description: Number of items return in the response
          title: Count
          type: integer
        items:
          description: The records on this page.
          items:
            $ref: '#/components/schemas/NvdResponseModel'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: Total number of items that can be returned
          title: Total
      required:
        - count
        - items
      title: OffsetPaginatedResponse[NvdResponseModel]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    NvdResponseModel:
      properties:
        configuration:
          anyOf:
            - $ref: '#/components/schemas/NvdCveConfiguration'
            - type: 'null'
          description: Configuration
        cveTags:
          anyOf:
            - items:
                $ref: '#/components/schemas/NvdCveTags'
              type: array
            - type: 'null'
          description: CVE Tags
          title: Cvetags
        descriptions:
          anyOf:
            - items:
                $ref: '#/components/schemas/NvdCveDescription'
              type: array
            - type: 'null'
          description: Descriptions
          title: Descriptions
        id:
          description: CVE ID
          title: Id
          type: string
        lastModified:
          description: Last modified date
          title: Lastmodified
          type: string
        metrics:
          anyOf:
            - $ref: '#/components/schemas/NvdCveMetrics'
            - type: 'null'
          description: CVSS Metrics
        published:
          description: Published date
          title: Published
          type: string
        references:
          anyOf:
            - items:
                $ref: '#/components/schemas/NvdCveReference'
              type: array
            - type: 'null'
          description: References
          title: References
        sourceIdentifier:
          description: Source Identifier
          title: Sourceidentifier
          type: string
        vulnStatus:
          anyOf:
            - type: string
            - type: 'null'
          description: Vulnerability status
          title: Vulnstatus
        weaknesses:
          anyOf:
            - items:
                $ref: '#/components/schemas/NvdCveWeakness'
              type: array
            - type: 'null'
          description: Weaknesses
          title: Weaknesses
      required:
        - id
        - sourceIdentifier
        - published
        - lastModified
      title: Nvd
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    NvdCveConfiguration:
      properties:
        nodes:
          description: Configuration Nodes
          items:
            $ref: '#/components/schemas/NvdCveConfigNode'
          title: Nodes
          type: array
      required:
        - nodes
      title: NvdCveConfiguration
      type: object
    NvdCveTags:
      properties:
        sourceIdentifier:
          description: Source Identifier
          title: Sourceidentifier
          type: string
        tags:
          description: Tags
          items:
            type: string
          title: Tags
          type: array
      required:
        - sourceIdentifier
        - tags
      title: NvdCveTags
      type: object
    NvdCveDescription:
      properties:
        lang:
          description: Description Language
          title: Lang
          type: string
        value:
          description: Description
          title: Value
          type: string
      required:
        - lang
        - value
      title: NvdCveDescription
      type: object
    NvdCveMetrics:
      properties:
        cvssMetricV2:
          anyOf:
            - items:
                $ref: '#/components/schemas/NvdCveCvssMetricV2'
              type: array
            - type: 'null'
          description: CVSS Metric V2
          title: Cvssmetricv2
        cvssMetricV31:
          anyOf:
            - items:
                $ref: '#/components/schemas/NvdCveCvssMetricV31'
              type: array
            - type: 'null'
          description: CVSS Metric V3.1
          title: Cvssmetricv31
      required:
        - cvssMetricV2
        - cvssMetricV31
      title: NvdCveMetrics
      type: object
    NvdCveReference:
      properties:
        source:
          anyOf:
            - type: string
            - type: 'null'
          description: Source
          title: Source
        url:
          description: URL
          title: Url
          type: string
      required:
        - url
        - source
      title: NvdCveReference
      type: object
    NvdCveWeakness:
      properties:
        description:
          anyOf:
            - items:
                $ref: '#/components/schemas/NvdCveDescription'
              type: array
            - type: 'null'
          description: CWE Descriptions
          title: Description
        source:
          description: Source
          title: Source
          type: string
        type:
          description: Type
          title: Type
          type: string
      required:
        - source
        - type
        - description
      title: NvdCveWeakness
      type: object
    NvdCveConfigNode:
      properties:
        cpeMatch:
          description: CPE Match
          items:
            $ref: '#/components/schemas/NvdCveConfigNodeCPEMatch'
          title: Cpematch
          type: array
        negate:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Negate
          title: Negate
        operator:
          description: Operator
          title: Operator
          type: string
      required:
        - operator
        - negate
        - cpeMatch
      title: NvdCveConfigNode
      type: object
    NvdCveCvssMetricV2:
      properties:
        acInsufInfo:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Access Complexity Insufficient Info
          title: Acinsufinfo
        baseSeverity:
          anyOf:
            - type: string
            - type: 'null'
          description: Base Severity
          title: Baseseverity
        cvssData:
          anyOf:
            - $ref: '#/components/schemas/NvdCveCvssMetricV2Data'
            - type: 'null'
          description: CVSS Data
        exploitabilityScore:
          anyOf:
            - type: number
            - type: 'null'
          description: Exploitability Score
          title: Exploitabilityscore
        impactScore:
          anyOf:
            - type: number
            - type: 'null'
          description: Impact Score
          title: Impactscore
        obtainAllPrivilege:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Obtain All Privilege
          title: Obtainallprivilege
        obtainOtherPrivilege:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Obtain Other Privilege
          title: Obtainotherprivilege
        obtainUserPrivilege:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Obtain User Privilege
          title: Obtainuserprivilege
        source:
          anyOf:
            - type: string
            - type: 'null'
          description: Source
          title: Source
        type:
          anyOf:
            - type: string
            - type: 'null'
          description: Type
          title: Type
        userInteractionRequired:
          anyOf:
            - type: boolean
            - type: 'null'
          description: User Interaction Required
          title: Userinteractionrequired
      required:
        - source
        - type
        - cvssData
        - baseSeverity
        - exploitabilityScore
        - impactScore
        - acInsufInfo
        - obtainAllPrivilege
        - obtainUserPrivilege
        - obtainOtherPrivilege
        - userInteractionRequired
      title: NvdCveCvssMetricV2
      type: object
    NvdCveCvssMetricV31:
      properties:
        cvssData:
          anyOf:
            - $ref: '#/components/schemas/NvdCveCvssMetricV3Data'
            - type: 'null'
          description: CVSS Data
        exploitabilityScore:
          anyOf:
            - type: number
            - type: 'null'
          description: Exploitability Score
          title: Exploitabilityscore
        impactScore:
          anyOf:
            - type: number
            - type: 'null'
          description: Impact Score
          title: Impactscore
        source:
          anyOf:
            - type: string
            - type: 'null'
          description: Source
          title: Source
        type:
          anyOf:
            - type: string
            - type: 'null'
          description: Type
          title: Type
      required:
        - source
        - type
        - cvssData
        - exploitabilityScore
        - impactScore
      title: NvdCveCvssMetricV31
      type: object
    NvdCveConfigNodeCPEMatch:
      properties:
        criteria:
          description: Criteria
          title: Criteria
          type: string
        matchCriteriaId:
          anyOf:
            - type: string
            - type: 'null'
          description: Match Criteria ID
          title: Matchcriteriaid
        vulnerable:
          description: Vulnerable
          title: Vulnerable
          type: boolean
      required:
        - vulnerable
        - criteria
        - matchCriteriaId
      title: NvdCveConfigNodeCPEMatch
      type: object
    NvdCveCvssMetricV2Data:
      properties:
        accessComplexity:
          description: CVSS Access Complexity
          title: Accesscomplexity
          type: string
        accessVector:
          description: CVSS Access Vector
          title: Accessvector
          type: string
        authentication:
          description: CVSS Authentication
          title: Authentication
          type: string
        availabilityImpact:
          description: CVSS Availability Impact
          title: Availabilityimpact
          type: string
        baseScore:
          description: CVSS Base Score
          title: Basescore
          type: number
        confidentialityImpact:
          description: CVSS Confidentiality Impact
          title: Confidentialityimpact
          type: string
        integrityImpact:
          description: CVSS Integrity Impact
          title: Integrityimpact
          type: string
        vectorString:
          description: CVSS Vector String
          title: Vectorstring
          type: string
        version:
          description: CVSS Version
          title: Version
          type: string
      required:
        - version
        - vectorString
        - accessVector
        - accessComplexity
        - authentication
        - confidentialityImpact
        - integrityImpact
        - availabilityImpact
        - baseScore
      title: NvdCveCvssMetricV2Data
      type: object
    NvdCveCvssMetricV3Data:
      properties:
        attackComplexity:
          description: CVSS Attack Complexity
          title: Attackcomplexity
          type: string
        attackVector:
          description: CVSS Attack Vector
          title: Attackvector
          type: string
        availabilityImpact:
          description: CVSS Availability Impact
          title: Availabilityimpact
          type: string
        baseScore:
          description: CVSS Base Score
          title: Basescore
          type: number
        baseSeverity:
          description: CVSS Base Severity
          title: Baseseverity
          type: string
        confidentialityImpact:
          description: CVSS Confidentiality Impact
          title: Confidentialityimpact
          type: string
        integrityImpact:
          description: CVSS Integrity Impact
          title: Integrityimpact
          type: string
        privilegesRequired:
          description: CVSS Privileges Required
          title: Privilegesrequired
          type: string
        scope:
          description: CVSS Scope
          title: Scope
          type: string
        userInteraction:
          description: CVSS User Interaction
          title: Userinteraction
          type: string
        vectorString:
          description: CVSS Vector String
          title: Vectorstring
          type: string
        version:
          description: CVSS Version
          title: Version
          type: string
      required:
        - version
        - vectorString
        - attackVector
        - attackComplexity
        - privilegesRequired
        - userInteraction
        - scope
        - confidentialityImpact
        - integrityImpact
        - availabilityImpact
        - baseScore
        - baseSeverity
      title: NvdCveCvssMetricV3Data
      type: object

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.