Update dependency org.xmlunit:xmlunit-core to v2.10.0 [SECURITY] #401
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.
This PR contains the following updates:
2.8.3->2.10.0GitHub Vulnerability Alerts
CVE-2024-31573
Impact
When performing XSLT transformations XMLUnit for Java did not disable XSLT extension functions by default. Depending on the XSLT processor being used this could allow arbitrary code to be executed when XMLUnit is used to transform data with a stylesheet who's source can not be trusted. If the stylesheet can be provided externally this may even lead to a remote code execution.
Patches
Users are advised to upgrade to XMLUnit for Java 2.10.0 where the default has been changed by means of xmlunit/xmlunit@b81d48b
Workarounds
XMLUnit's main use-case is performing tests on code that generates or processes XML. Most users will not use it to perform arbitrary XSLT transformations.
Users running XSLT transformations with untrusted stylesheets should explicitly use XMLUnit's APIs to pass in a pre-configured TraX
TransformerFactorywith extension functions disabled via features and attributes. The requiredsetFactoryorsetTransformerFactorymethods have been available since XMLUnit for Java 2.0.0.References
Bug Report
JAXP Security Guide
Release Notes
xmlunit/xmlunit (org.xmlunit:xmlunit-core)
v2.10.0Compare Source
add a new
ElementSelectors.byNameAndAllAttributesvariant that filters attributes before deciding whether elements canbe compared.
Inspired by Issue #259
By default the
TransformerFactorys created will now try to disable extension functions. If you need extensionfunctions for your transformations you may want to pass in your own instance of
TransformerFactoryandTransformerFactoryConfigurermay help with that.Inspired by Issue #264
This is tracked as CVE-2024-31573.
JAXPXPathEnginewill now try to disable the execution of extension functions by default but usesXPathFactory#setPropertywhich is not available prior to Java 18. You may want to enable secure processing on anXPathFactoryinstance you pass toJAXPXPathEngineinstead - andXPathFactoryConfigurermay help with that.v2.9.1Compare Source
fixed some AssertJ tests that didn't work on Windows.
Issue #252 and PR
#253 by
@Boiarshinov
added overloads to
ElementSelectors.byXPaththat accept aXPathEngineargument.
Issue #255
added Cyclone DX SBOMs to release artifacts
v2.9.0Compare Source
added a new module
xmlunit-jakarta-jaxb-implthat makesInput.fromJaxbusejakarta.xml.bindrather thanjavax.xml.bind. For more details see the User'sGuide.
This change is not fully backwards compatible. The
JaxbBuilderclass has become abstract and the
withMarshallermethod haschanged its signature. For most cases the change will not be noticed
and for almost all other cases it should be enough to re-compile
your code against XMLUnit 2.9.x.
Issue #227 and PR
#247
added
NodeFilters#satisfiesAllandsatifiesAnymethods to makeit easier to combine multiple node filters.
added to simplify the use case of #249
v2.8.4Compare Source
based on a suggestion by @gerpres made
in #236
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.