Skip to content

fix(parsers): DeprecationWarning: Testing an element's truth ...

32e4e0f
Select commit
Loading
Failed to load commit list.
Merged

fix(parsers): DeprecationWarning: Testing an element's truth ... #13828

fix(parsers): DeprecationWarning: Testing an element's truth ...
32e4e0f
Select commit
Loading
Failed to load commit list.
DryRunSecurity / General Security Analyzer succeeded Dec 5, 2025 in 58s

DryRun Security

Details

General Security Analyzer Findings: 1 detected

⚠️ Incomplete Data Processing in Parser dojo/tools/dependency_check/parser.py (click for details)
Type 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.
Filename dojo/tools/dependency_check/parser.py
CodeLink
if dependencies is not None:
for dependency in dependencies.findall(namespace + "dependency"):
vulnerabilities = dependency.find(
namespace + "vulnerabilities",