fix(parsers): DeprecationWarning: Testing an element's truth ...#13828
Merged
rossops merged 1 commit intoDefectDojo:devfrom Dec 8, 2025
Merged
fix(parsers): DeprecationWarning: Testing an element's truth ...#13828rossops merged 1 commit intoDefectDojo:devfrom
rossops merged 1 commit intoDefectDojo:devfrom
Conversation
Signed-off-by: kiblik <5609770+kiblik@users.noreply.github.com>
e851f86 to
32e4e0f
Compare
|
This pull request modifies the Dependency Check XML parser to add defensive
Incomplete Data Processing in Parser in
|
| Vulnerability | Incomplete Data Processing in Parser |
|---|---|
| Description | The parser for Dependency Check XML reports now includes if node is not None checks to prevent crashes. However, these checks, particularly for critical elements like <dependencies>, lead to silent skipping of entire sections of the report if the corresponding XML elements are missing. There is no logging or error reporting mechanism to alert the user that parts of the report were not processed, resulting in an incomplete and potentially misleading security assessment. |
django-DefectDojo/dojo/tools/dependency_check/parser.py
Lines 435 to 438 in 32e4e0f
All finding details can be found in the DryRun Security Dashboard.
valentijnscholten
approved these changes
Dec 5, 2025
Maffooch
approved these changes
Dec 5, 2025
rossops
approved these changes
Dec 8, 2025
Maffooch
pushed a commit
to valentijnscholten/django-DefectDojo
that referenced
this pull request
Feb 16, 2026
fix(parsers): DeprecationWarning: Testing an element's truth ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I noticed quite a few
DeprecationWarningin the test logs.