Skip to content

Add XML support for Checkmarx CxFlow SAST parser and regression test#15049

Open
goutham-hari wants to merge 1 commit into
DefectDojo:masterfrom
goutham-hari:checkmarx-cxflow-xml-support
Open

Add XML support for Checkmarx CxFlow SAST parser and regression test#15049
goutham-hari wants to merge 1 commit into
DefectDojo:masterfrom
goutham-hari:checkmarx-cxflow-xml-support

Conversation

@goutham-hari

@goutham-hari goutham-hari commented Jun 21, 2026

Copy link
Copy Markdown

Description
The Checkmarx CxFlow SAST parser (dojo/tools/checkmarx_cxflow_sast/parser.py)
previously only supported JSON report imports — XML files hit a TODO stub and
returned no findings.

This PR adds XML support by delegating to the existing CheckmarxParser
(dojo/tools/checkmarx/parser.py, detailed mode) instead of duplicating its
parsing logic.

Test results
Added test_xml_parse_file_with_single_vulnerability_has_single_finding in
unittests/tools/test_checkmarx_cxflow_sast_parser.py, using the existing
sample file checkmarx/single_finding.xml. Verifies a single finding is
returned with the correct title, "High" severity, active=True, verified=False.

Documentation
No documentation changes — this extends file-format support within the existing
Checkmarx CxFlow SAST parser; no new parser/page is introduced.

Extra information
No pre-approval issue was filed for this one, given the narrow scope (closing a
TODO/format gap in an existing parser rather than adding a new integration).
Happy to open one if a maintainer would prefer that first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant