Short answer: SPDX 3.0.1 does not attach vulnerability data to packages as loose properties. Each signal is a typed relationship from a security_Vulnerability element to the software it applies to: CvssV3VulnAssessmentRelationship for a CVSS score, EpssVulnAssessmentRelationship for EPSS, ExploitCatalogVulnAssessmentRelationship for KEV, SsvcVulnAssessmentRelationship for an SSVC decision, and four VEX classes for status. Below are the required fields for each, real JSON-LD built from CVE-2023-3519, and the checks you still need after the official Python bindings accept your document.
If you are new to the signals themselves, start with CVSS vs EPSS vs KEV and VEX not_affected statements. This post is about carrying them inside an SBOM, which is the hand-off point in the CVE-record-to-ticket workflow.
Version and sources
- Model:
spdx/spdx-3-modelat tag 3.0.1 (commit a745f63, December 12, 2024), directorymodel/Security/. The rendered pages are on the SPDX 3.0.1 spec site. A 3.1-rc1 tag exists;main(last commit November 25, 2026) differs mainly in wording (“must” became “shall”) and in corrected examples. Nothing below relies on 3.1. - Bindings:
spdx-python-model0.0.6 from PyPI, modulev3_0_1. - Input data: cvelistV5 record for CVE-2023-3519, KEV catalog 2026.11.27, EPSS daily file for 2026-11-28 (model v2026.06.15) from
empiricalsec/epss_scores.
The 13 classes and what each requires
All assessment classes inherit from VulnAssessmentRelationship, which adds optional assessedElement, suppliedBy, publishedTime, modifiedTime and withdrawnTime. The table lists each class’s own properties with their 3.0.1 cardinality.
| Class | relationshipType | Required (1..1) | Optional |
|---|---|---|---|
CvssV2VulnAssessmentRelationship | hasAssessmentFor | score, vectorString | |
CvssV3VulnAssessmentRelationship | hasAssessmentFor | score, severity, vectorString | |
CvssV4VulnAssessmentRelationship | hasAssessmentFor | score, severity, vectorString | |
EpssVulnAssessmentRelationship | hasAssessmentFor | probability, percentile, publishedTime (restricted to 1) | |
ExploitCatalogVulnAssessmentRelationship | hasAssessmentFor | catalogType, exploited, locator | |
SsvcVulnAssessmentRelationship | hasAssessmentFor | decisionType | |
VexAffectedVulnAssessmentRelationship | affects | actionStatement | actionStatementTime, vexVersion, statusNotes |
VexNotAffectedVulnAssessmentRelationship | doesNotAffect | one of justificationType / impactStatement (see below) | impactStatementTime, vexVersion, statusNotes |
VexFixedVulnAssessmentRelationship | fixedIn | vexVersion, statusNotes | |
VexUnderInvestigationVulnAssessmentRelationship | underInvestigationFor | vexVersion, statusNotes |
The remaining three are Vulnerability (the CVE itself, with optional published/modified/withdrawn times), and the abstract parents VulnAssessmentRelationship and VexVulnAssessmentRelationship.
Vocabularies are closed:
- CvssSeverityType:
critical,high,medium,low,none, defined by the usual CVSS score bands (9.0-10.0 critical, and so on). - ExploitCatalogType:
kev(“CISA’s Known Exploited Vulnerability (KEV) Catalog”) andother. - SsvcDecisionType:
act,attend,track,trackStar. - VexJustificationType:
componentNotPresent,vulnerableCodeNotPresent,vulnerableCodeCannotBeControlledByAdversary,vulnerableCodeNotInExecutePath,inlineMitigationsAlreadyExist. These are the same five justifications used by OpenVEX and CSAF, in camelCase (see the CycloneDX/OpenVEX/CSAF mapping).
For not_affected, the model makes both justificationType and impactStatement optional (0..1) but states: “to produce a valid VEX not_affected statement, one of them MUST be defined. This is specified in the Minimum Elements for VEX.” That rule lives in prose, not in the cardinality.
How each feed maps, and what it loses
CVSS. One relationship per version. The CVE record’s baseScore, baseSeverity (lowercased) and vectorString map one to one. There is no place for the metric’s source or for CVSS v4 threat or supplemental context beyond what the vector string holds, so if both the CNA and CISA-ADP scored a CVE, emit two relationships and set suppliedBy to tell them apart.
EPSS. probability and percentile map from the epss and percentile columns, and publishedTime is required, so put the file’s score_date there. There is no model_version field. Since EPSS v5 shifted scores across the board (EPSS v5 score shift), record the model version in comment or keep the source file.
KEV. catalogType kev, exploited true, locator a URI. The model describes exploited only as “set when a CVE is listed in an exploit catalog” and locator as “the location of an exploit catalog”. KEV’s dateAdded, dueDate, knownRansomwareCampaignUse and requiredAction have no properties of their own (field meanings: KEV JSON feed). We put dateAdded in publishedTime; that is our convention, not the spec’s.
SSVC. The class description says it “is intended to communicate the results of using the CISA SSVC Calculator”, and its one property is the decision. CISA-ADP does not publish a decision. For CVE-2023-3519 the CISA-ADP container holds only the points Exploitation: active, Automatable: no, Technical Impact: total (SSVC 2.0.3). To fill decisionType you must add your own Mission and Well-being input and run a deployer tree (how to read Vulnrichment SSVC, the BOD 26-04 decision table). The points themselves cannot be carried in a typed field.
VEX. from must be the Vulnerability; to points at the products; assessedElement can name the subcomponent where the vulnerability was found. The model also says VEX “inherits information from the document level down to its statements”: a statement without its own author or date takes the document’s CreationInfo.
JSON-LD built from a real CVE
The script below reads the CVE-2023-3519 record, KEV and an EPSS file, and writes an SPDX 3.0.1 document with CVSS v3.1, EPSS and KEV assessments. Tested with Python 3.13 and spdx-python-model==0.0.6. The package and its purl are placeholders; replace them with an element from your own SBOM.
"""Build SPDX 3.0.1 Security-profile assessments for one CVE from public feeds.
Inputs: a cvelistV5 record, the CISA KEV JSON, an EPSS daily CSV (gz). Requires: pip install spdx-python-model==0.0.6
Usage: python cve_to_spdx_security.py CVE.json kev.json epss.csv.gz PURL > out.spdx.json"""
import sys, json, gzip, csv, io
from datetime import datetime, timezone
from spdx_python_model import v3_0_1 as spdx
rec_path, kev_path, epss_path, purl = sys.argv[1:5]
rec = json.load(open(rec_path))
cve = rec["cveMetadata"]["cveId"]
kev = {v["cveID"]: v for v in json.load(open(kev_path))["vulnerabilities"]}
with gzip.open(epss_path, "rt") as f:
header = f.readline() # "#model_version:...,score_date:..."
score_date = header.strip().split("score_date:")[1]
epss = next((r for r in csv.DictReader(f) if r["cve"] == cve), None)
now = datetime.now(timezone.utc).replace(microsecond=0)
ci = spdx.CreationInfo(specVersion="3.0.1", created=now, createdBy=["urn:example:agent:secteam"])
agent = spdx.Organization(spdxId="urn:example:agent:secteam", name="Example Security Team", creationInfo=ci)
ci.createdBy = [agent]
pkg = spdx.software_Package(spdxId="urn:example:pkg:1", name="appliance", software_packageUrl=purl, creationInfo=ci)
vuln = spdx.security_Vulnerability(spdxId=f"urn:example:vuln:{cve}", name=cve, creationInfo=ci,
externalIdentifier=[spdx.ExternalIdentifier(externalIdentifierType=spdx.ExternalIdentifierType.cve, identifier=cve)])
objs = [agent, pkg, vuln]
def assess(cls, suffix, **kw):
o = cls(spdxId=f"urn:example:{suffix}:{cve}", creationInfo=ci, from_=vuln, to=[pkg],
relationshipType=spdx.RelationshipType.hasAssessmentFor, **kw)
objs.append(o); return o
# CVSS v3.1 from the CNA container (first one found)
for m in rec["containers"]["cna"].get("metrics", []):
if "cvssV3_1" in m:
c = m["cvssV3_1"]
assess(spdx.security_CvssV3VulnAssessmentRelationship, "cvss3", security_score=c["baseScore"],
security_severity=getattr(spdx.security_CvssSeverityType, c["baseSeverity"].lower()),
security_vectorString=c["vectorString"]); break
if epss: # publishedTime is required (minCount 1) on EPSS assessments
assess(spdx.security_EpssVulnAssessmentRelationship, "epss", security_probability=float(epss["epss"]),
security_percentile=float(epss["percentile"]),
security_publishedTime=datetime.fromisoformat(score_date.replace("Z", "+00:00")))
if cve in kev:
assess(spdx.security_ExploitCatalogVulnAssessmentRelationship, "kev",
security_catalogType=spdx.security_ExploitCatalogType.kev, security_exploited=True,
security_locator=f"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve={cve}",
security_publishedTime=datetime.fromisoformat(kev[cve]["dateAdded"] + "T00:00:00+00:00"))
# CISA-ADP publishes SSVC decision *points*, not a decision. SPDX 3.0.1 only stores the decision,
# so keep the points as a comment and leave decisionType to your own deployer tree.
for adp in rec["containers"].get("adp", []):
for m in adp.get("metrics", []):
o = m.get("other", {})
if o.get("type") == "ssvc":
pts = {k: v for d in o["content"]["options"] for k, v in d.items()}
print("SSVC points (not stored as decisionType):", pts, file=sys.stderr)
doc = spdx.SpdxDocument(spdxId="urn:example:doc:1", creationInfo=ci, element=objs, rootElement=[pkg])
objset = spdx.SHACLObjectSet([doc] + objs)
out = io.BytesIO()
spdx.JSONLDSerializer(indent=2).write(objset, out) # raises ValueError on min/max cardinality errors
sys.stdout.write(out.getvalue().decode())
Run: python cve_to_spdx_security.py CVE-2023-3519.json known_exploited_vulnerabilities.json epss_scores-2026-11-28.csv.gz "pkg:generic/[email protected]" > out.spdx.json. It prints the SSVC points to stderr and writes an 8-node @graph with context https://spdx.org/rdf/3.0.1/spdx-context.jsonld. The KEV node it produced:
{
"type": "security_ExploitCatalogVulnAssessmentRelationship",
"spdxId": "urn:example:kev:CVE-2023-3519",
"security_catalogType": "kev",
"security_exploited": true,
"security_locator": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-3519",
"security_publishedTime": "2023-07-19T00:00:00Z",
"from": "urn:example:vuln:CVE-2023-3519",
"relationshipType": "hasAssessmentFor",
"to": [
"urn:example:pkg:1"
],
"creationInfo": "_:CreationInfo0"
}
The CVSS node carried "security_score": "9.8" and the EPSS node "security_probability": "0.84638", "security_percentile": "0.99799", "security_publishedTime": "2026-11-28T12:00:21Z".
Two serialization details trip up consumers:
- Decimals are JSON strings.
xsd:decimalvalues (score, probability, percentile) came out as"9.8", not9.8. Parse them as decimals; do not compare strings. - Property names carry the profile prefix. Security properties serialize as
security_score,security_locatorand so on, and class names assecurity_EpssVulnAssessmentRelationship. The example blocks inside the 3.0.1 model text are not consistent about this (one uses"locator"unprefixed and"security_exploited": "true"as a string); themainbranch corrected them. Build from the bindings or the JSON-LD context, not from those examples.
What the bindings check, and what they don’t
The bindings raise ValueError at serialization time when a required property is missing, and reject values outside a vocabulary. We ran eight deliberately broken objects through JSONLDSerializer:
| Test object | Result in spdx-python-model 0.0.6 |
|---|---|
ExploitCatalog without locator | Rejected (required property) |
VEX affected without actionStatement | Rejected (required property) |
SSVC with decisionType “defer” | Rejected (not in SsvcDecisionType) |
EPSS without publishedTime | Accepted |
| EPSS with probability 1.5 | Accepted |
VEX not_affected with relationshipType affects | Accepted |
| VEX not_affected with neither justification nor impactStatement | Accepted |
CVSS v3 severity critical with score 5.0 | Accepted |
The EPSS publishedTime restriction is an “external property restriction” on an inherited property, and the 0-1 ranges, relationship-type constraints and the not_affected rule are written as constraints or prose in the model. The bindings we tested did not enforce them. Whether the published SHACL shapes catch each one we could not test here (see Limits). In your pipeline, add explicit checks for these five cases before you publish or ingest a document, and run a SHACL validator such as spdx3-validate where it can reach spdx.org.
Common mistakes
- Writing CVSS as a property of the package. In SPDX 3 the score belongs to a relationship between the vulnerability and the package, so the same CVE can carry different scores for different products or suppliers.
- Using
exploited: falseto mean “not in KEV”. The property is described as set when a CVE is listed; leaving the relationship out is clearer than a false value. - Copying SSVC points into
decisionType.active/no/totalis not a decision. Compute one, or leave SSVC out. - Dropping provenance. Set
suppliedByon each assessment, especially when you merge CNA and CISA-ADP CVSS or several VEX sources.
Limits of this article
- Scope is SPDX 3.0.1. 3.1 is at release-candidate stage; check its Security profile before targeting it.
- We could not run SHACL validation:
spdx3-validate0.0.7 downloadsspdx-model.ttl, the JSON-LD context and the JSON schema from spdx.org, which our build environment could not reach. The table above describes the Python bindings only. - The KEV
publishedTime=dateAddedand EPSSpublishedTime=score_datechoices are our conventions.
Sources and verification
| Important claim | Source | Status |
|---|---|---|
| Class list, properties, cardinalities, vocabularies, VEX and SSVC description text | spdx/spdx-3-model at tag 3.0.1; SPDX 3.0.1 spec site | Verified |
| 3.1-rc1 tag exists; main changed examples and wording | git ls-remote --tags and diff of model/Security 3.0.1 vs main, 2026-11-29; 3.1-RC1 spec site | Verified |
| Serialized JSON-LD output and binding test results | Scripts above with spdx-python-model 0.0.6 | Verified (our test) |
| CVE-2023-3519 CVSS, CISA-ADP SSVC points, KEV entry | cvelistV5 record; cisagov/kev-data 2026.11.27 | Verified |
| EPSS 0.84638 / 0.99799 on 2026-11-28, model v2026.06.15 | empiricalsec/epss_scores daily file | Verified |
Frequently asked questions
Does SPDX 3 support VEX?
Yes. SPDX 3.0.1's Security profile defines VexAffectedVulnAssessmentRelationship, VexNotAffectedVulnAssessmentRelationship, VexFixedVulnAssessmentRelationship and VexUnderInvestigationVulnAssessmentRelationship, each tied to one relationship type: affects, doesNotAffect, fixedIn and underInvestigationFor.
How do I record that a CVE is in CISA KEV in SPDX 3?
Use ExploitCatalogVulnAssessmentRelationship with relationshipType hasAssessmentFor, security_catalogType kev, security_exploited true and a security_locator URI. All three properties are required. There is no field for KEV's dateAdded or dueDate; publishedTime and your own ticket system have to carry dates.
Can I put CISA's SSVC values from a CVE record into SPDX?
Not directly. SPDX 3.0.1's SsvcVulnAssessmentRelationship has one required property, decisionType (act, attend, track or trackStar). CISA-ADP containers in CVE records carry decision points such as Exploitation, Automatable and Technical Impact, not a decision. Compute the decision with your own deployer tree, then record it.
Is SPDX 3.1 out?
As of November 29, 2026 the spdx-3-model repository has a 3.1-rc1 tag and a 3.1-RC1 spec site, but 3.0.1 (tagged December 2024) is the latest final tag. This article is about 3.0.1.
Spdx 3Spdx Security ProfileSbomVexEpssCisa KevSsvcCvssJson-Ld