You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Give the possibility to atomically upload a SBOM with related VEX #1872
Dependency Track manage BOM and VEX as distinct entities with their own API as recommended here.
From an automation perspective, one has to :
Upload a BOM with /v1/bom API and get a token
Wait for BOM to be completely processed and fetch project/component identifiers
Eventually alter VEX with the proper bom-refs and upload it with /v1/vex and get a token
Check that VEX is completely processed
Proposed Behavior:
Provide the ability to manage BOM and VEX atomically to ease integration tasks. Two alternatives (not mutually exclusive)
Distinct resources : Enhance POST|PUT /v1/bom API with an optional vex field and chain BomUploadEvent and VexUploadEvent events during the BOM processing
Mutualized resource : During BOM upload processing, check if the BOM has vulnerabilities and if the test is positive, handle the VEX upload as part of the processing
Reacted by Lukas Braune, Lukas Mertens, binarious, Yaytay, Karsten Sperling Opdal, Stefan Nuernberger, Tobias Trumm, Patrick Schmitt, Victor J. Hansen, Carsten Walther and 3 more
@syalioune do you have an example of the altered VEX? I'm adding a bom-ref to the vulnerability and updating the affects ref to match the project however the vuln is not displaying for me after uploading
@syalioune your above example does not work for me either, are you sure the affects.ref is supposed to be the project UUID, I thought that it should be the UUID of the vulnerable package/ component?
I'd been trying this, as this was similar to what I had seen in an exported VEX
are you sure the affects.ref is supposed to be the project UUID, I thought that it should be the UUID of the vulnerable package/ component?
Based on CISA VEX use cases and Steve comment here, my understanding is that VEX intent is to communicate vulnerability state at a project level not individual component.
Project target : The vulnerability affects.ref must match exactly metadata.component.bom-ref (no need to match the exact project UUID as I initially thought) or it must be a bom-link like urn:cdx:123e4567-e89b-12d3-a456-426614174000/1 (the URI does not need to actually match an existing BOM serial number) ==> The vulnerability analysis state will be applied to all the project's components vulnerable to the vuln
Component target : The vulnerability affects.ref must match exactly a components[*].bom-ref in the same VEX file ==> The matching component identifiers will then be used to find the actual project's component to apply the analysis state
Some common pre-conditions for the VEX import to work :
The vulnerabilities listed in the VEX must already be associated with project/component ==> A VEX import does not add new vulnerabilities. It is an update process
The vulnerabilities listed in the VEX must already be associated with project/component ==> A VEX import does not add new vulnerabilities. It is an update process
I'm trying to implement the following workflow:
Create project via Dependency Track REST API
Upload VEX via Dependency Track REST API
Upload BOM using dependencyTrackPublisher in Jenkins
Does this mean I will not have the VEX audit information present in the project's Audit Vulnerabilities tab after the 3rd step?
@tiagojufr The way DT currently works would require:
Create project via Dependency Track REST API
Upload BOM using dependencyTrackPublisher in Jenkins
Upload VEX via Dependency Track REST API
The VEX would need to be last and would have to be uploaded AFTER the initial analysis of the BOM.
There are limitations in DT's support of VEX currently. DT can only apply VEX analysis decisions for vulnerabilities that DT has already identified. If DT has not identified the vulnerability, the analysis will be discarded.
Take for example a VEX that states that the product is not vulnerable to Log4Shell, which would be a common assertion from many vendors. If the project you're applying the VEX to doesn't use Log4J, you will not know the VEX make that assertion. So there's certainly a lot of improvement that VEX support needs.
In your workflow example, you have the VEX coming before the BOM. That ideally should be a supported use case. However, it would require a retention policy and use of the BOM Repository Server to store and manage BOMs, VEXs, etc for extended use. This is something that is not in place today, but is planned. Once implemented, I think the VEX coming before the BOM should absolutely be possible.
Reacted by Tiago Neves, syalioune, Mark Symons, Florian Buchmeier, Patrick Schmitt and Victor J. Hansen
+1 from me...
It's VERY annoying not to be able apply vulnerability and when the order inside VEX file will have an different behaviors, CVE vulnerability response may or may not be updated when applied to the project.
Almost makes it unusable.
Reacted by Oleksandr Radchenko, Kent Arve Olsen, jakub-bochenski, Jason Hills, Patrick Schmitt and Victor J. Hansen
Hey @stevespringett
within my company we are currently looking into providing this feature for Dependency Track (i.e. providing some form of VEX upload for an unfinished SBOM analysis which will automatically be taken into account after the SBOM analysis has finished). Basically what you described in this comment: #1872 (comment)
It would be a relevant feature for us so we are planning to make this contribution to Dependency Track. Would you still be open to this feature?
Reacted by jakub-bochenski, Oleksandr Radchenko, jerrygls and Benjamin Krämer
This is sadly still VERY annoying. I tried to merge my SBOM with VEX from develop just to find out the vulnerabilities node is ignored on /v1/bom and that waiting for /v1/token/{uuid} before sending it separately to /v1/vex will still trigger notifications that I have to close afterwards on each new version... Would be great to just support the vulnerabilities node as expected by CycloneDXs specification.
Activity
zestful-thud commentedon Sep 18, 2022
@syalioune do you have an example of the altered VEX? I'm adding a bom-ref to the vulnerability and updating the affects ref to match the project however the vuln is not displaying for me after uploading
syalioune commentedon Sep 19, 2022
Hello @natefive
Given a project with uuid
PROJECT_UUID, a VEX like below works for me{ "bomFormat": "CycloneDX", "specVersion": "1.4", "version": 1, "metadata": { "timestamp": "2022-09-19T09:20:57Z", "component": { "name": "test-project", "version": "test", "type": "application", "bom-ref": "PROJECT_UUID" } }, "vulnerabilities": [ { "id": "CVE-2022-28948", "analysis": { "state": "false_positive", "detail": "Kafka connect is not used." }, "affects": [ { "ref": "PROJECT_UUID" } ] } ] }Can you please share the VEX you are trying to upload ?
zestful-thud commentedon Sep 20, 2022
@syalioune your above example does not work for me either, are you sure the affects.ref is supposed to be the project UUID, I thought that it should be the UUID of the vulnerable package/ component?
I'd been trying this, as this was similar to what I had seen in an exported VEX
syalioune commentedon Sep 21, 2022
Hello Nate,
Based on CISA VEX use cases and Steve comment here, my understanding is that VEX intent is to communicate vulnerability state at a project level not individual component.
Dependency Track implementation allow both targets (project and component) with the following conditions :
affects.refmust match exactlymetadata.component.bom-ref(no need to match the exact project UUID as I initially thought) or it must be a bom-link likeurn:cdx:123e4567-e89b-12d3-a456-426614174000/1(the URI does not need to actually match an existing BOM serial number) ==> The vulnerability analysis state will be applied to all the project's components vulnerable to the vulnaffects.refmust match exactly acomponents[*].bom-refin the same VEX file ==> The matching component identifiers will then be used to find the actual project's component to apply the analysis stateSome common pre-conditions for the VEX import to work :
analysisnode otherwise it is skipped during import ==> That's why your example above does not workYou can find attached some test data using Traefik SBOM (JSON files renamed to .TXT)
traefik-sbom.txt
vex-using-local-component-bom-ref.txt
vex-existing-vuln-target-project-bom-ref.txt
vex-existing-vuln-target-project-bom-ref-no-analysis-not-working.txt
vex-existing-vuln-target-urn.txt
vex-new-vulnerability-not-working.txt
vex-using-actual-component-uuid-not-working.txt
stevespringett commentedon Nov 16, 2022
I think the use cases need to be very clear between importing VDR and VEX as they are entirely different things.
Refer to:
https://cyclonedx.org/capabilities/vdr/
https://cyclonedx.org/capabilities/vex/
I'm not aware of any use case (other than audit and IAST tools) where a BOM will contain VEX.
However, many security tools support BOM with VDR. This will be a common use case, but there's already a ticket open for that. (#1297)
tiagojufr commentedon Feb 23, 2023
@syalioune when you say
I'm trying to implement the following workflow:
dependencyTrackPublisherin JenkinsDoes this mean I will not have the VEX audit information present in the project's Audit Vulnerabilities tab after the 3rd step?
stevespringett commentedon Feb 23, 2023
@tiagojufr The way DT currently works would require:
The VEX would need to be last and would have to be uploaded AFTER the initial analysis of the BOM.
There are limitations in DT's support of VEX currently. DT can only apply VEX analysis decisions for vulnerabilities that DT has already identified. If DT has not identified the vulnerability, the analysis will be discarded.
Take for example a VEX that states that the product is not vulnerable to Log4Shell, which would be a common assertion from many vendors. If the project you're applying the VEX to doesn't use Log4J, you will not know the VEX make that assertion. So there's certainly a lot of improvement that VEX support needs.
In your workflow example, you have the VEX coming before the BOM. That ideally should be a supported use case. However, it would require a retention policy and use of the BOM Repository Server to store and manage BOMs, VEXs, etc for extended use. This is something that is not in place today, but is planned. Once implemented, I think the VEX coming before the BOM should absolutely be possible.
Shortfinga commentedon May 15, 2023
Are there plans to make this possible? Do you have a rough ETA?
paletteguy commentedon Feb 26, 2025
+1 from me...
It's VERY annoying not to be able apply vulnerability and when the order inside VEX file will have an different behaviors, CVE vulnerability response may or may not be updated when applied to the project.
Almost makes it unusable.
alexhocks commentedon Apr 16, 2025
Hey @stevespringett
within my company we are currently looking into providing this feature for Dependency Track (i.e. providing some form of VEX upload for an unfinished SBOM analysis which will automatically be taken into account after the SBOM analysis has finished). Basically what you described in this comment:
#1872 (comment)
It would be a relevant feature for us so we are planning to make this contribution to Dependency Track. Would you still be open to this feature?
Falco20019 commentedon Jul 2, 2026
This is sadly still VERY annoying. I tried to merge my SBOM with VEX from
developjust to find out thevulnerabilitiesnode is ignored on/v1/bomand that waiting for/v1/token/{uuid}before sending it separately to/v1/vexwill still trigger notifications that I have to close afterwards on each new version... Would be great to just support thevulnerabilitiesnode as expected by CycloneDXs specification.