NAME

Grafeas::V1::Vulnerability - Compiled Protocol Buffers messages for grafeas/v1/vulnerability.proto

SYNOPSIS

use Grafeas::V1::Vulnerability;

my $msg = Grafeas::V1::Vulnerability::VulnerabilityNote->new({
    cvss_score => $cvss_score,
    severity => $severity,
    details => $details,
    cvss_v3 => $cvss_v3,
});

# Read or update a field
my $val = $msg->cvss_score();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Grafeas::V1::Vulnerability::VulnerabilityNote->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from grafeas/v1/vulnerability.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Grafeas::V1::Vulnerability::VulnerabilityNote

A security vulnerability that can be found in resources.

Inherits from Protobuf::Message.

Accessors

  • $msg->cvss_score() / $msg->cvss_score($value)

    Type: Float

    The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

  • $msg->severity() / $msg->severity($value)

    Type: Enum (Grafeas::V1::Severity)

    The note provider assigned severity of this vulnerability.

  • $msg->details() / $msg->details($value)

    Type: Message (Grafeas::V1::Vulnerability::VulnerabilityNote::Detail)

    Details of all known distros and packages affected by this vulnerability.

  • $msg->cvss_v3() / $msg->cvss_v3($value)

    Type: Message (Grafeas::V1::Cvss::CVSSv3)

    The full description of the CVSSv3 for this vulnerability.

  • $msg->windows_details() / $msg->windows_details($value)

    Type: Message (Grafeas::V1::Vulnerability::VulnerabilityNote::WindowsDetail)

    Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

  • $msg->source_update_time() / $msg->source_update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

  • $msg->cvss_version() / $msg->cvss_version($value)

    Type: Enum (Grafeas::V1::CVSSVersion)

    CVSS version used to populate cvss_score and severity.

  • $msg->cvss_v2() / $msg->cvss_v2($value)

    Type: Message (Grafeas::V1::Cvss::CVSS)

    The full description of the v2 CVSS for this vulnerability.

  • $msg->advisory_publish_time() / $msg->advisory_publish_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time this advisory was published by the source.

  • $msg->cvss_v4() / $msg->cvss_v4($value)

    Type: Message (Grafeas::V1::Cvss::CVSS)

    The full description of the v4 CVSS for this vulnerability.

Grafeas::V1::Vulnerability::VulnerabilityOccurrence

An occurrence of a severity vulnerability on a resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->type() / $msg->type($value)

    Type: String

    The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).

  • $msg->severity() / $msg->severity($value)

    Type: Enum (Grafeas::V1::Severity)

    Output only. The note provider assigned severity of this vulnerability.

  • $msg->cvss_score() / $msg->cvss_score($value)

    Type: Float

    Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

  • $msg->cvssv3() / $msg->cvssv3($value)

    Type: Message (Grafeas::V1::Cvss::CVSS)

    The cvss v3 score for the vulnerability.

  • $msg->package_issue() / $msg->package_issue($value)

    Type: Message (Grafeas::V1::Vulnerability::VulnerabilityOccurrence::PackageIssue)

    Required. The set of affected locations and their fixes (if available) within the associated resource.

  • $msg->short_description() / $msg->short_description($value)

    Type: String

    Output only. A one sentence description of this vulnerability.

  • $msg->long_description() / $msg->long_description($value)

    Type: String

    Output only. A detailed description of this vulnerability.

  • $msg->related_urls() / $msg->related_urls($value)

    Type: Message (Grafeas::V1::Common::RelatedUrl)

    Output only. URLs related to this vulnerability.

  • $msg->effective_severity() / $msg->effective_severity($value)

    Type: Enum (Grafeas::V1::Severity)

    The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity.

    When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.

  • $msg->fix_available() / $msg->fix_available($value)

    Type: Bool

    Output only. Whether at least one of the affected packages has a fix available.

  • $msg->cvss_version() / $msg->cvss_version($value)

    Type: Enum (Grafeas::V1::CVSSVersion)

    Output only. CVSS version used to populate cvss_score and severity.

  • $msg->cvss_v2() / $msg->cvss_v2($value)

    Type: Message (Grafeas::V1::Cvss::CVSS)

    The cvss v2 score for the vulnerability.

  • $msg->vex_assessment() / $msg->vex_assessment($value)

    Type: Message (Grafeas::V1::Vulnerability::VulnerabilityOccurrence::VexAssessment)

  • $msg->extra_details() / $msg->extra_details($value)

    Type: String

    Occurrence-specific extra details about the vulnerability.

  • $msg->risk() / $msg->risk($value)

    Type: Message (Grafeas::V1::Risk::Risk)

    Risk information about the vulnerability, such as CISA, EPSS, etc.

  • $msg->cvss_v4() / $msg->cvss_v4($value)

    Type: Message (Grafeas::V1::Cvss::CVSS)

    The cvss v4 score for the vulnerability.

SEE ALSO

Protobuf, Protobuf::Message, Grafeas::V1::Vulnerability::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.