Interface OsvVulnerability

A full OSV vulnerability record as defined by the OSV schema.

interface OsvVulnerability {
    affected?: OsvAffected[];
    aliases?: string[];
    credits?: OsvCredit[];
    database_specific?: Record<string, unknown>;
    details?: string;
    id: string;
    modified: string;
    published: string;
    references?: OsvReference[];
    related?: string[];
    schema_version?: string;
    severity?: OsvSeverity[];
    summary?: string;
    withdrawn?: string;
}

Properties

affected?: OsvAffected[]

Affected packages and version ranges

aliases?: string[]

Alternative identifiers (e.g. CVE IDs, GHSA IDs)

credits?: OsvCredit[]

Credits for discovery, reporting, or fixing

database_specific?: Record<string, unknown>

Database-specific metadata

details?: string

Full Markdown description

id: string

Unique OSV identifier (e.g. 'GHSA-xxxx-xxxx-xxxx', 'CVE-2021-44228')

modified: string

ISO 8601 timestamp of the last modification

published: string

ISO 8601 timestamp of initial publication

references?: OsvReference[]

External references (advisories, fixes, articles)

related?: string[]

Related vulnerability IDs

schema_version?: string

Schema version (e.g. '1.0.0')

severity?: OsvSeverity[]

Severity scores

summary?: string

Short one-line summary

withdrawn?: string

ISO 8601 timestamp of withdrawal — present if vulnerability was withdrawn