CSAF(3pm)
π CSAF β bestie edition π
okay so this is the Perl manual page for CSAF, aka the Common Security Advisory Framework, living in the User Contributed Perl Documentation section (that's the 3pm part, iykyk). Buckle up, we're building security advisories and it's gonna be iconic.
β¨ NAME β¨
CSAF β Common Security Advisory Framework π
πΈ SYNOPSIS πΈ
no thoughts, just vibes, and also this exact code:
use CSAF;
my $csaf = CSAF->new;
$csaf->document->title('Base CSAF Document');
$csaf->document->category('csaf_security_advisory');
$csaf->document->publisher(
category => 'vendor',
name => 'CSAF',
namespace => 'https://csaf.io'
);
my $tracking = $csaf->document->tracking(
id => 'CSAF:2024-001',
status => 'final',
version => '1.0.0',
initial_release_date => 'now',
current_release_date => 'now'
);
$tracking->revision_history->add(
date => 'now',
summary => 'First release',
number => '1'
);
my @errors = $csaf->validate;
if (@errors) {
say $_ for (@errors);
Carp::croak "Validation errors";
}
# Save CSAF documents using the
$csaf->writer(directory => '/var/www/html/csaf')->write;
π¦ DESCRIPTION π¦
The Common Security Advisory Framework (CSAF) Version 2.0 is the definitive reference for the language which supports creation, update, and interoperable exchange of security advisories as structured information on products, vulnerabilities and the status of impact and remediation among interested parties. π
<https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html>
π CSAF PROPERTIES π
These properties are inherited from CSAF::Document. yes bestie, inheritance, we love her.
documentβ returnsCSAF::Type::Document.product_treeβ returnsCSAF::Type::ProductTree.vulnerabilitiesβ returnsCSAF::Type::Vulnerabilities.
π HELPERS π
TO_JSONbuilderβ returnsCSAF::Builder.renderβ alias for"renderer->render($format)". β¨
my $doc = $csaf->render('html');
rendererβ returnsCSAF::Renderer. π
my $doc = $csaf->renderer->render('html');
validateβ alias for"validator->validate".validatorβ returnsCSAF::Validator.from_stringβ parse a CSAF document string and returnCSAF.from_fileβ parse a CSAF document file and returnCSAF.to_stringβ render a CSAF document. π«Ά
my $json = $csaf->to_string;
writerβ returnsCSAF::Writer.
π SUPPORT π
π Bugs / Feature Requests π
Please report any bugs or feature requests through the issue tracker at <https://github.com/giterlizzi/perl-CSAF/issues>. You will be notified automatically of any progress on your issue. fr fr, you get updates, no ghosting.
π¦ Source Code π¦
This is open source software. The code repository is available for public review and contribution under the terms of the license.
<https://github.com/giterlizzi/perl-CSAF>
git clone https://github.com/giterlizzi/perl-CSAF.git
π AUTHOR π
- Giuseppe Di Terlizzi <gdt@cpan.org>
π LICENSE AND COPYRIGHT π
This software is copyright (c) 2023-2025 by Giuseppe Di Terlizzi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π
okay bestie that's the whole page, every last flag and URL accounted for, nothing skipped, periodt. π
this was perl v5.40.1, dated 2025-09-03, and yes it's still CSAF(3pm) β mwah, go build something cute πβ¨π¦
π¦ where this page comes from
- ubuntu resolute: libcsaf-perl 0.26-1 Β· Artistic-2.0
- ubuntu stonking: libcsaf-perl 0.26-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms