Skip to content

Commit

Permalink
Fix: Allow empty CPE match for CVE configuration nodes
Browse files Browse the repository at this point in the history
It seems despite violating their spec some CVE configuration nodes don't
contain a CPE match.
  • Loading branch information
bjoernricks committed Oct 16, 2023
1 parent 066169b commit 1807dbd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pontos/nvd/models/cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,14 @@ class Node(Model):
A CVE configuration node
Attributes:
operator:
cpe_match:
operator: Operator (and/or) for this node
cpe_match: The CPE match for the node. Despite a cpe match is required
int NISTs API spec the data seems to contain nodes without matches.
negate:
"""

operator: Operator
cpe_match: List[CPEMatch]
cpe_match: Optional[List[CPEMatch]] = None
negate: Optional[bool] = None


Expand Down

0 comments on commit 1807dbd

Please sign in to comment.