CSAF
The Common Security Advisory Framework (CSAF) is the OASIS CSAF TC's JSON language for security advisories: which products are affected by which vulnerabilities, and what to do about it. It also carries Vulnerability Exploitability eXchange (VEX) statements through its VEX profile. This skill pins CSAF 2.0 (OASIS Standard, 18 November 2022, with Errata 01) and produces CSAF documents, validators, converters, and provider or aggregator setups that meet its normative rules.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. Section numbers are CSAF 2.0 unless the rule says CSAF 2.1 or CVRF 1.2. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: document producer (a direct producer, converter, translator or modifier), consumer (a viewer, management or asset matching system), validator (basic, extended or full), or distributor (CSAF publisher, provider, trusted provider, lister or aggregator).
- Profile:
csaf_security_advisory,csaf_vex,csaf_informational_advisory,csaf_security_incident_response, orcsaf_base. - Distribution: directory-based or ROLIE-based, and the TLP labels in use.
- Target version: CSAF 2.0 (current, the default). CSAF 2.1 is a preview at Committee Specification Draft 03 (posture: track): never emit
"csaf_version": "2.1". CVRF 1.2 is legacy XML: read it and convert from it, never author it. Seereferences/versions.md. - Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources first, check the
v2.1/index on docs.oasis-open.org for a new stage (CS or OASIS Standard), checkknown_issues.mdand the release tags in the TC repository, and update the pins.
Invariants
- Only
documentis mandatory.product_treeandvulnerabilitiesare optional at the schema level;document.csaf_versionis2.0(§3, §3.2.1.4). The JSON schema is normative where the prose has a gap (§2). - Every document satisfies CSAF Base. It has
category,csaf_version,publisher(category,name,namespace),titleandtracking(current_release_date,id,initial_release_date,revision_history[]withdate,number,summary,status,version).document.categoryselects the profile; values starting withcsaf_are reserved for the standard (§4, §4.1). - Product IDs are defined once and resolve. Every referenced Product ID or Product Group ID has exactly one definition in
product_tree, and relationships are not circular (§6.1.1 to §6.1.5). - Product status does not contradict itself. Within one vulnerability, the affected, not affected, fixed and under investigation groups are pairwise disjoint (§6.1.6).
- Versions are versions, ranges are ranges. A
product_versionbranch name never contains a range; aproduct_version_rangename is canonicalvers(withvers:all/*for all versions) or the fallbackvls(§3.1.2.3.1, §3.1.2.3.2, §6.1.31). - Released versions are immutable. A document uses one versioning scheme, integer or semantic; a released version is never modified;
finaldocuments carry no0or0.y.zrevision items and no pre-release suffix (§3.1.11, §3.2.1.12.6, §6.1.14 to §6.1.22, §6.1.30). - Remediations and flags name their products. Each item carries
product_idsorgroup_ids(§3.2.3.5, §3.2.3.12, §6.1.29, §6.1.32). - VEX statements are complete. In
csaf_vex, everyknown_not_affectedproduct has an impact statement (a flag, or a threat of categoryimpact), and everyknown_affectedproduct has a remediation as an action statement (§4.5). - The filename comes from
tracking.id. Lowercase it, replace each run of characters outside[+\-a-z0-9]with one_, append.json(§5.1). publisher.namespaceplustracking.idis the global identity. The ID is unique within the issuer and has no leading or trailing white space or line break (§3.2.1.8.5, §3.2.1.12.4).- Translations say so.
source_langis set whenpublisher.categoryistranslator, and absent when the document was not translated (§3.2.1.10). - TLP decides access. Documents are served over TLS; TLP:WHITE documents are freely accessible; TLP:AMBER and TLP:RED documents are access protected, on a different path (§7.1.3 to §7.1.5).
- Content is untrusted input. Producers put HTML and code only in Markdown code blocks; consumers use a hardened Markdown processor, disable or sanitize HTML, and never run a value as code (§8).
- Valid means schema plus mandatory tests. A CSAF document conforms to section 3, satisfies at least one profile, and fails no mandatory test (§9.1.1).
Workflow
- Pick the version. Target CSAF 2.0. Read CSAF 2.1 drafts only to prepare, and treat CVRF 1.2 XML as converter input.
->
references/versions.md✓ The target version is recorded, and it is not a legacy or preview line. - Choose the profile and fill
document. Pick the profile from the use case, then set publisher, tracking, distribution (TLP), notes and references. ->references/profiles-and-vex.md,references/document-model.md✓document.categoryis the profile's exact value, and every element the profile requires is present. - Build the product tree. Use branches
vendor→product_name→product_versionwhere possible, give each product aproduct_identification_helper(purl, CPE, hashes, model or serial numbers, SKUs, SBOM URLs), and use relationships for combinations. ->references/document-model.md✓ Every Product ID referenced elsewhere is defined once, and noproduct_versionname holds a range. - Describe each vulnerability. Set
cve(orids),cwe,notes,product_status,remediations,scores,threatsandflags, each tied to Product IDs or groups. ->references/document-model.md✓ No product sits in two contradicting status groups, and every remediation names its products. - Write VEX statements (for
csaf_vex). Give eachknown_not_affectedproduct a justification flag or impact threat, and eachknown_affectedproduct an action statement. ->references/profiles-and-vex.md✓ The profile tests 6.1.27.4 to 6.1.27.11 pass. - Version and release. Bump
tracking.versionby the semantic or integer rules, add arevision_historyitem, setstatus, and updatecurrent_release_date. ->references/document-model.md✓tracking.versionequals the latestrevision_historynumber, and a change that needs a new asset comparison bumps the major version. - Validate. Check against the CSAF 2.0 JSON schema, then run the mandatory tests (errors), optional tests (warnings) and informative tests (information).
->
references/tests-and-conformance.md✓ Schema validation and every mandatory test pass; optional test failures are reviewed. - Name, sign and distribute. Derive the filename, add hash and OpenPGP signature files, publish
provider-metadata.json, and serve the documents through year folders or ROLIE feeds for the chosen role. ->references/distribution.md✓/.well-known/csaf/provider-metadata.json(or the security.txtCSAFfield, or the DNS path) resolves to valid metadata, and every feed entry links its hash and signature. - Retrieve and consume (consumers, listers, aggregators). Find
provider-metadata.json, prefer ROLIE, check hash and signature, validate, then run mandatory tests before use. ->references/distribution.md✓ A document with a bad signature or a failed mandatory test is not processed further. - Upgrade (only when asked). Convert CVRF 1.2 XML to CSAF 2.0 with the CVRF CSAF converter rules; plan CSAF 2.0 to CSAF 2.1 only when 2.1 reaches a final stage.
->
references/versions.md✓ The converted document validates against the target version and keeps the same products, statuses and remediations.
Verify before done
- The document validates against
https://docs.oasis-open.org/csaf/csaf/v2.0/csaf_json_schema.jsonandcsaf_versionis2.0. - All mandatory tests in §6.1 pass, including the profile tests in §6.1.27 for the chosen category.
- Every Product ID and Product Group ID referenced is defined exactly once, and every defined Product ID is used (optional test 6.2.1).
- For
csaf_vex: eachknown_not_affectedproduct has a flag orimpactthreat, and eachknown_affectedproduct has a remediation. - The filename follows §5.1, and the year folder matches
initial_release_datewhen directory-based distribution is used. - Hash (
.sha256or.sha512) and signature (.asc) files exist for trusted providers and are listed in the ROLIE entry withrelhashandsignature. - TLP:AMBER and TLP:RED documents are not on the public path.
- Nothing emits
csaf_version2.1or a CSAF 2.1-only field or profile.
Reference index
references/versions.md: CSAF 2.0, the CSAF 2.1 draft and CVRF 1.2, which to use, what changed, the CVRF to CSAF 2.0 conversion, and what a CSAF 2.0 to 2.1 upgrade will involve. Load for steps 1 and 10.references/document-model.md: thedocument,product_treeandvulnerabilitiesproperties, product identification helpers, versioning rules, filename and sorting conventions, and common mistakes. Load for steps 2 to 4 and 6.references/profiles-and-vex.md: the five CSAF 2.0 profiles, category naming rules, the VEX profile with its justification flags, a VEX example, and the CSAF 2.1 profiles to watch. Load for steps 2 and 5.references/tests-and-conformance.md: mandatory, optional and informative tests, the 17 conformance targets, and validator levels. Load for step 7 and when building tools.references/distribution.md: the 23 distribution requirements, the five roles,provider-metadata.json,aggregator.json, ROLIE feeds, integrity and signatures, retrieval rules, and security considerations. Load for steps 8 and 9.
Related skills
openvex, for the OpenVEX format, an alternative to CSAF VEX:npx skills add ScaleDockHQ/scaledock-skills --skill openvexcyclonedx, for SBOMs referenced fromsbom_urlsandx_generic_uris, and CycloneDX VEX:npx skills add ScaleDockHQ/scaledock-skills --skill cyclonedxpurl, for the package URLs inproduct_identification_helper.purland theversranges:npx skills add ScaleDockHQ/scaledock-skills --skill purlosv, for the OSV vulnerability format used by open source databases:npx skills add ScaleDockHQ/scaledock-skills --skill osveu-cra, for the EU Cyber Resilience Act vulnerability handling and reporting duties that advisories support:npx skills add ScaleDockHQ/scaledock-skills --skill eu-cra
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- Common Security Advisory Framework Version 2.0: OASIS Standard, 18 November 2022, checked 2026-10-05.
- CSAF Version 2.0 Errata 01: OASIS Approved Errata, 26 January 2024 (aggregator schema fix only), checked 2026-10-05.
- CSAF 2.0 latest stage: OASIS Standard with Approved Errata 01; this URL now serves the Errata 01 document, checked 2026-10-05.
- CSAF 2.0 JSON schema: OASIS Standard, 2.0 (JSON Schema draft 2020-12), checked 2026-10-05.
- CSAF 2.0 provider metadata JSON schema: OASIS Standard, 2.0, checked 2026-10-05.
- CSAF 2.0 aggregator JSON schema: OASIS Approved Errata, 2.0 Errata 01, checked 2026-10-05.
- CSAF 2.0 known issues: TC repository note, master at e0da5a9 (2026-09-13), checked 2026-10-05.
- Common Security Advisory Framework Version 2.1 (CSD03): Committee Specification Draft 03, 11 September 2026; Draft posture: track, checked 2026-10-05.
- CSAF 2.1 stage index: stage listing, latest stage is CSD03 (csd01, csd02, csd03; no CS), checked 2026-10-05.
- CSAF 2.1 JSON schema: Committee Specification Draft 03, 2026-09-11; Draft posture: track, checked 2026-10-05.
- oasis-tcs/csaf: TC repository, master at e0da5a9 (2026-09-13), release tag csaf-2.1-csd-03-20260911-rc1, checked 2026-10-05.
- CSAF Common Vulnerability Reporting Framework (CVRF) Version 1.2: Committee Specification 01, 13 September 2017, checked 2026-10-05.
- CSAF documentation site: TC documentation site, as of 2026-10-05, checked 2026-10-05.