Commit 75e7834
authored
fix(dependency_check): fold related dependency paths into description (#14941)
Dependency-Check's DependencyBundlingAnalyzer merges co-grouped artifacts
into one main dependency and lists the others under <relatedDependencies>.
The vulnerability is attached only to the main dependency in the XML; related
entries are metadata for other files in the same logical component.
Previously the parser emitted one finding per related entry in addition to
the main finding. This multiplied a single CVE into N findings sharing the
same title, CVE, component name, and version — only the file path differed.
Projects with Spring Boot, ActiveMQ, or other libraries whose CPE matches
many sibling artifacts (DC bundling scenario 4) were hit hardest.
Instead, emit one finding per vulnerability per main dependency and surface
related file paths in the description under a "**Related Filepaths:**" block.
The five DependencyBundlingAnalyzer bundling scenarios are documented in the
new build_related_dependencies_block() helper, the parser docs page, and the
2.59.1 upgrade notes.
Closes-style note: findings previously tagged `related` will be closed on the
next reimport as they are no longer emitted. The `related` tag is not applied.1 parent 136f54f commit 75e7834
4 files changed
Lines changed: 193 additions & 150 deletions
File tree
- docs/content
- releases/os_upgrading
- supported_tools/parsers/file
- dojo/tools/dependency_check
- unittests/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
11 | 25 | | |
12 | 26 | | |
13 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
89 | 140 | | |
90 | 141 | | |
91 | 142 | | |
| |||
448 | 499 | | |
449 | 500 | | |
450 | 501 | | |
| 502 | + | |
451 | 503 | | |
452 | 504 | | |
453 | 505 | | |
| |||
459 | 511 | | |
460 | 512 | | |
461 | 513 | | |
| 514 | + | |
| 515 | + | |
462 | 516 | | |
463 | 517 | | |
464 | 518 | | |
465 | 519 | | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | 520 | | |
486 | 521 | | |
487 | 522 | | |
| |||
493 | 528 | | |
494 | 529 | | |
495 | 530 | | |
| 531 | + | |
| 532 | + | |
496 | 533 | | |
497 | 534 | | |
498 | 535 | | |
| |||
0 commit comments