Skip to content

Commit 88a44e0

Browse files
committed
added new cpe23 definition for use with new cpeApplicability block which supports only CPE 2.3 format. renamed old cpeId definition to cpe22and23 which is referenced by cpes array and supports both CPE 2.2 and 2.3.
1 parent 17f9295 commit 88a44e0

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

schema/CVE_Record_Format.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,20 @@
5353
"type": "string",
5454
"pattern": "^CVE-[0-9]{4}-[0-9]{4,19}$"
5555
},
56-
"cpeId": {
56+
"cpe22and23": {
5757
"type": "string",
5858
"description":"Common Platform Enumeration (CPE) Name in either 2.2 or 2.3 format",
5959
"pattern": "([c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9._\\-~%]*){0,6})|(cpe:2\\.3:[aho*\\-](:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[*\\-]))(:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){4})",
6060
"minLength": 1,
6161
"maxLength": 2048
6262
},
63+
"cpe23": {
64+
"type": "string",
65+
"description":"Common Platform Enumeration (CPE) Name in 2.3 format",
66+
"pattern": "(cpe:2\\.3:[aho*\\-](:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[*\\-]))(:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){4})",
67+
"minLength": 1,
68+
"maxLength": 2048
69+
},
6370
"orgId": {
6471
"description": "A UUID for an organization participating in the CVE program. This UUID can be used to lookup the organization record in the user registry service.",
6572
"$ref": "#/definitions/uuidType"
@@ -208,7 +215,7 @@
208215
"items": {
209216
"title": "CPE Name",
210217
"description":"Common Platform Enumeration (CPE) Name in either 2.2 or 2.3 format",
211-
"$ref": "#/definitions/cpeId"
218+
"$ref": "#/definitions/cpe22and23"
212219
}
213220
},
214221
"modules": {
@@ -547,7 +554,7 @@
547554
"type": "boolean"
548555
},
549556
"criteria": {
550-
"$ref": "#/definitions/cpeId"
557+
"$ref": "#/definitions/cpe23"
551558
},
552559
"matchCriteriaId": {
553560
"$ref": "#/definitions/uuidType"

0 commit comments

Comments
 (0)