Repository navigation
Replies: 1 comment 2 replies
|
Validating the CWE field should be a priority. We need to make a few decisions first.
Suggested warnings:
|
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Purpose:
This will be one of multiple discussions to query the QWG and others on how best to use the upcoming CVE Services Validation Library for performing additional or more accurate CVE Record Format JSON schema validation during record ingest. The Validation Library will allow the CVE Program to perform programmatic validations beyond what the current JSON schema validation can provide. A simple example might be where we want to validate that a provided CWE ID actually exists by referencing the current CWE List. This is not possible using JSON schema validation, but would be possible with the Validation Library.
Discussion:
The current problemTypes array requires a description and lang property for each item provided, and includes an optional cweId property for providing a CWE ID. If the record author is providing a CWE mapping, this means that they will provide a CWE name/description (required currently) along with the cweId value. A pattern match is used within the current schema to make sure that the cweId value uses the correct CWE ID syntax (i.e., "^CWE-[1-9][0-9]*$"). There is no validation done on the description property value.
Schema Location(s):
https://github.com/CVEProject/cve-schema/blob/main/schema/CVE_Record_Format.json#L887
https://github.com/CVEProject/cve-schema/blob/main/schema/CVE_Record_Format.json#L910
Question(s):
Examples:
All reactions