Repository navigation
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Improve vulnerability creation by validating alias data and synchronizing the first provided alias with the persistence layer. This ensures that internal, CVE, GHSA, and OSV identifiers are captured consistently when aliases are supplied. The update also prevents missing or incomplete alias information from silently passing through the creation workflow. Signed-off-by: Anton Jäppinen Johansson <antja@westermo.com>
Ensure alias data is validated and consistently updated when modifying an existing vulnerability. The logic now initializes missing alias lists, applies incoming alias fields when provided, and synchronizes the resulting alias with the persistence layer. This prevents stale or incomplete alias records from remaining attached to updated vulnerabilities. Signed-off-by: Anton Jäppinen Johansson <antja@westermo.com>
Remove the internal identifier from the first alias when deleting an internal vulnerability. This prevents stale alias references from remaining after the vulnerability record is removed and ensures that alias data does not incorrectly point to a non‑existent internal vulnerability. Signed-off-by: Anton Jäppinen Johansson <antja@westermo.com>
Small change to get the aliases instead of getting the whole vulnerability again Signed-off-by: Anton Jäppinen Johansson <antja@westermo.com>
updated synching aliases with jsonVuln instead of persistentVuln Signed-off-by: Anton Jäppinen Johansson <antja@westermo.com>
|
We're also currently missing this feature. Is there a reason why the pull request hasn't been merged yet? |
|
Hi and thanks for working on this! I'm also interested in this feature and looked into why the PR may have stalled. As far as I can tell, this PR was written against the v4 alias model ( I also checked the current behavior against 5.1.2 and it matches what's described in #5699. So for a v5 solution, the missing piece would probably be an asserter for aliases set via the REST API (e.g. something like |
|
Thanks for the contribution, apologies we didn't get to it. Since this PR was raised, we released Dependency-Track version 5, which now lives on Because of this, we're closing all PRs that are still open against If you believe your proposed change is still worth having, here's what you can do:
Thanks again for your time and effort! |
Description
This is a suggestion on solution for aliases for connecting internal aliases with existing CVE, GHSA, OSV.
Addressed Issue
Fixes #5699,
Fronted issue: DependencyTrack/frontend#458
Additional Details
This is a suggestion on solution for aliases, issue with this is that if a internal alias is related to a CVE and GHSA if one off those is removed from the internal alias the relationship between those are removed (CVE -> GHSA).
This does not affect the current frontend, since alias for internal vulnerabilities are disabled.
I will make a PR for the frontend also adding needed functionality.
Checklist