# com.nahdig.cve.atprotoV1

> Custom CVE record linking an NVD v2 record to release.software project records via strongRefs.

- Kind: record
- Record key: any
- Authority: cve.nahdig.com
- Lexicon: 1
- Published by [nahdig.com](https://lexicon.garden/identity/did:plc:zmuf6p7ahfh4ly4wp4bx57hx), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.cve.atprotoV1)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.cve.atprotoV1/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.cve.atprotoV1/analytics)

## Record (`com.nahdig.cve.atprotoV1`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `cve` (string, required): CVE identifier, e.g. CVE-2024-3094.
- `nvd` (ref, required): Strong reference to the com.nahdig.cve.nvdV2 record.
  - Reference: `com.atproto.repo.strongRef#main`
- `software` (array, required)
  - `items` (ref)
    - Reference: `#softwareRef`

## #softwareRef (`com.nahdig.cve.atprotoV1#softwareRef`)

Type: object

### Properties

- `cpes` (array)
  - `items` (string)
- `part` (string, required)
  - Constraints: knownValues: a | o | h
- `product` (string, required)
- `project` (ref, required): Strong reference to the software.release.project record.
  - Reference: `com.atproto.repo.strongRef#main`
- `purls` (array)
  - `items` (string)
- `vendor` (string, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "cve": {
            "description": "CVE identifier, e.g. CVE-2024-3094.",
            "type": "string"
          },
          "nvd": {
            "description": "Strong reference to the com.nahdig.cve.nvdV2 record.",
            "ref": "com.atproto.repo.strongRef#main",
            "type": "ref"
          },
          "software": {
            "items": {
              "ref": "#softwareRef",
              "type": "ref"
            },
            "type": "array"
          }
        },
        "required": [
          "createdAt",
          "cve",
          "nvd",
          "software"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "softwareRef": {
      "properties": {
        "cpes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "part": {
          "knownValues": [
            "a",
            "o",
            "h"
          ],
          "type": "string"
        },
        "product": {
          "type": "string"
        },
        "project": {
          "description": "Strong reference to the software.release.project record.",
          "ref": "com.atproto.repo.strongRef#main",
          "type": "ref"
        },
        "purls": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "vendor": {
          "type": "string"
        }
      },
      "required": [
        "project",
        "part",
        "vendor",
        "product"
      ],
      "type": "object"
    }
  },
  "description": "Custom CVE record linking an NVD v2 record to release.software project records via strongRefs.",
  "id": "com.nahdig.cve.atprotoV1",
  "lexicon": 1
}
```
