The validator returns 6 instead of the usual 4. That is not "4 plus something": the 6 contains the bit for a violated schema, and such an advisory is useless for machines.
Symptom
csaf_validator ~/kurs/07/kaputt.json echo $? 2026/12/03 14:35:51 warn: no remote validator specified schema validation errors of "/home/ubuntu/kurs/07/kaputt.json" * /document/tracking/status: value must be one of 'draft', 'final', 'interim' 2026/12/03 14:35:51 /home/ubuntu/kurs/07/kaputt.json: filename kaputt.json does not match document/tracking/id "BW-SA-2026-001". 6
In the copy of the advisory, line 26 says "status": "fertig" (German for "done").
Diagnosis
The valid advisory for comparison returns only the 4 that is always set without a remote validator.
csaf_validator ~/lotse/csaf/bw-sa-2026-001.json echo $? 2026/12/03 14:35:43 warn: no remote validator specified "/home/ubuntu/lotse/csaf/bw-sa-2026-001.json" passes the schema validation. 4
Causes
schematracking.status is a fixed value
CSAF 2.0 only knows draft, interim and final for the status. Any other value violates the schema (bit 2).
file nameFile name and tracking.id do not match
The standard requires the file name to be derived from tracking.id: bw-sa-2026-001.json for BW-SA-2026-001. Irrelevant for a working copy, but only the right name may be published.
Fix
Don't: Check only for exit code 0 in a pipeline. Without a remote validator it is never 0; what matters is that bit 2 is not set.
Compliance engineering: CRA and AI Act on Kubernetes, day 7: coordinated disclosure – security.txt, a researcher's report, a CSAF security advisory.
Go to day 7 →
FAQ
What do the bits of the exit code mean?
2 schema violated, 4 no remote validator given, 8 remote validation failed. They are added up.
Does the schema check the content too?
No. The further mandatory tests of the standard are done by a validation service you pass with --validator=<URL>.