DependencyTrack / dependency-track

Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
https://dependencytrack.org/
Apache License 2.0
2.43k stars 529 forks source link

Backport: Prevent XXE injection during CycloneDX validation and parsing #3871

Closed nscuro closed 1 week ago

nscuro commented 1 week ago

Description

Disables XXE support in the XmlInputFactory used for determining the schema version prior to validation.

Addressed Issue

Backports #3870

Additional Details

N/A

Checklist

codacy-production[bot] commented 1 week ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.01% (target: -1.00%) :white_check_mark: 100.00% (target: 70.00%)
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (f7d3b94faf8e9e199d8461781bdfb8469d7229ce) | 22062 | 16814 | 76.21% | | | Head commit (e9b8ec0ec0af2664280600a8ec978d8902115a88) | 22069 (+7) | 16821 (+7) | 76.22% (**+0.01%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#3871) | 9 | 9 | **100.00%** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences


:rocket: Don’t miss a bit, follow what’s new on Codacy.

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more