Skip to content

Commit da03911

Browse files
committed
Update vulnerability ratings description in XML and Protobuf schemas, and revert extension changes
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
1 parent c70cc3e commit da03911

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

schema/bom-1.6.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ message Vulnerability {
888888
optional Source source = 3;
889889
// Zero or more pointers to vulnerabilities that are the equivalent of the vulnerability specified. Oftentimes, the same vulnerability may exist in multiple sources of vulnerability intelligence but have different identifiers. References provide a way to correlate vulnerabilities across multiple sources of vulnerability intelligence.
890890
repeated VulnerabilityReference references = 4;
891-
// List of vulnerability ratings
891+
// List of vulnerability ratings. Consumers SHOULD use ratings and SHOULD NOT ignore them; source ratings may differ and aid prioritization.
892892
repeated VulnerabilityRating ratings = 5;
893893
// List of Common Weaknesses Enumerations (CWEs) codes that describe this vulnerability. For example, 399 (of https://cwe.mitre.org/data/definitions/399.html)
894894
repeated int32 cwes = 6;

schema/bom-1.6.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4218,7 +4218,7 @@ limitations under the License.
42184218
</xs:element>
42194219
<xs:element name="ratings" minOccurs="0" maxOccurs="1">
42204220
<xs:annotation>
4221-
<xs:documentation xml:lang="en">List of vulnerability ratings.</xs:documentation>
4221+
<xs:documentation xml:lang="en">List of vulnerability ratings. Consumers SHOULD use ratings and SHOULD NOT ignore them; source ratings may differ and aid prioritization.</xs:documentation>
42224222
</xs:annotation>
42234223
<xs:complexType>
42244224
<xs:sequence>

schema/bom-1.7.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ message Vulnerability {
990990
optional Source source = 3;
991991
// Zero or more pointers to vulnerabilities that are the equivalent of the vulnerability specified. Oftentimes, the same vulnerability may exist in multiple sources of vulnerability intelligence but have different identifiers. References provide a way to correlate vulnerabilities across multiple sources of vulnerability intelligence.
992992
repeated VulnerabilityReference references = 4;
993-
// List of vulnerability ratings
993+
// List of vulnerability ratings. Consumers SHOULD use ratings and SHOULD NOT ignore them; source ratings may differ and aid prioritization.
994994
repeated VulnerabilityRating ratings = 5;
995995
// List of Common Weaknesses Enumerations (CWEs) codes that describe this vulnerability. For example, 399 (of https://cwe.mitre.org/data/definitions/399.html)
996996
repeated int32 cwes = 6;

schema/bom-1.7.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4461,7 +4461,7 @@ limitations under the License.
44614461
</xs:element>
44624462
<xs:element name="ratings" minOccurs="0" maxOccurs="1">
44634463
<xs:annotation>
4464-
<xs:documentation xml:lang="en">List of vulnerability ratings.</xs:documentation>
4464+
<xs:documentation xml:lang="en">List of vulnerability ratings. Consumers SHOULD use ratings and SHOULD NOT ignore them; source ratings may differ and aid prioritization.</xs:documentation>
44654465
</xs:annotation>
44664466
<xs:complexType>
44674467
<xs:sequence>

schema/ext/vulnerability-1.0-SNAPSHOT.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"ratings": {
147147
"type": "array",
148148
"title": "Ratings",
149-
"description": "List of vulnerability ratings. Consumers SHOULD use ratings and SHOULD NOT ignore them; source ratings may differ and aid prioritization.",
149+
"description": "List of the vulnerability ratings as defined by various risk rating methodologies.",
150150
"items": {"$ref": "#/definitions/rating"}
151151
},
152152
"cwes": {

0 commit comments

Comments
 (0)