Skip to content

Aliases for internal vulnerabilites #5699:Fix suggestion#5709

Open
anton-jj wants to merge 5 commits intoDependencyTrack:masterfrom
anton-jj:master
Open

Aliases for internal vulnerabilites #5699:Fix suggestion#5709
anton-jj wants to merge 5 commits intoDependencyTrack:masterfrom
anton-jj:master

Conversation

@anton-jj
Copy link

@anton-jj anton-jj commented Jan 19, 2026

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

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have added corresponding update logic
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

@owasp-dt-bot
Copy link

owasp-dt-bot commented Jan 19, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Anton Jäppinen Johansson added 5 commits January 26, 2026 09:26
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Aliases for internal vulnerabilites

2 participants