Skip to content

feat: highlight vulnerable components in dependency graph - #2155

Open
sachinnadgouda wants to merge 1 commit into
DependencyTrack:mainfrom
sachinnadgouda:highlight-vulnerable-dependency-graph
Open

sachinnadgouda wants to merge 1 commit into
DependencyTrack:mainfrom
sachinnadgouda:highlight-vulnerable-dependency-graph

Conversation

@sachinnadgouda

@sachinnadgouda sachinnadgouda commented Nov 24, 2026 •

Copy link
Copy Markdown

Description

Make vulnerable components immediately distinguishable in the project dependency graph, helping analysts identify affected dependencies and assess their highest vulnerability severity without cross-referencing the findings table.

Vulnerable component nodes now display severity-colored borders, subtle theme-aware background tints, and compact badges showing vulnerability counts and highest severity. Accessible labels provide the full per-severity breakdown.

The enhancement also includes:

  • A dynamic graph legend showing the highest severities present among visible vulnerable components.
  • Vulnerability indicators in component search results.
  • Support for direct and transitive dependencies.
  • Lazy loading of active (non-suppressed) project findings, gated by VIEW_VULNERABILITY permission.
  • Automatic refresh of vulnerability information after in-session audit changes.
  • Error and pagination-limit notifications to avoid silently displaying incomplete vulnerability information.

The implementation reuses the existing findings API, severity design tokens, and graph components without introducing backend changes or additional dependencies.

Addressed Issue

Closes #1641

Additional Details

  • Vulnerability severity is determined using the highest active finding severity associated with each component.
  • Multiple findings are deduplicated and aggregated per component.
  • Vulnerability information is fetched asynchronously and cached in a component UUID lookup map to avoid repeated aggregation during graph rendering.
  • Existing graph navigation, node selection, expansion, zoom, pan, and non-vulnerable node behaviour are preserved.
  • Light and dark themes are supported, and severity identification does not rely on color alone.
  • Added unit tests covering severity aggregation, pagination, node rendering, search badges, and accessibility.

Validation performed:

  • Prettier
  • ESLint
  • Vue i18n extraction
  • Unit tests
  • Production build

Checklist

Make vulnerable packages immediately distinguishable in the project dependency graph so analysts can spot affected dependencies and their highest severity without cross-referencing the findings table.

Vulnerable component nodes now display severity-colored borders, subtle theme-aware tints, compact non-color-only severity badges, and full accessible severity breakdowns. The graph legend dynamically lists severities present in the visible graph, and component search options indicate affected packages.

Active (non-suppressed) project findings are loaded lazily only for users with VIEW_VULNERABILITY permission, refreshed after in-session audit changes, and surface status notices when findings fail to load or exceed the pagination safety cap.

Closes DependencyTrack#1641

Signed-off-by: Sachin S Nadgouda <[email protected]>
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.

Highlight vulnerable packages in the dependency graph.

1 participant