Skip to content

Update dependency org.xmlunit:xmlunit-core to v2.10.0 [SECURITY]#885

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/maven-org.xmlunit-xmlunit-core-vulnerability
Open

Update dependency org.xmlunit:xmlunit-core to v2.10.0 [SECURITY]#885
renovate[bot] wants to merge 1 commit intomainfrom
renovate/maven-org.xmlunit-xmlunit-core-vulnerability

Conversation

@renovate
Copy link

@renovate renovate bot commented Aug 1, 2024

This PR contains the following updates:

Package Change Age Confidence
org.xmlunit:xmlunit-core (source) 2.9.12.10.0 age confidence

GitHub 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 TransformerFactory with extension functions disabled via features and attributes. The required setFactory or setTransformerFactory methods 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.0

Compare Source

  • add a new ElementSelectors.byNameAndAllAttributes variant that filters attributes before deciding whether elements can
    be compared.
    Inspired by Issue #​259

  • By default the TransformerFactorys created will now try to disable extension functions. If you need extension
    functions for your transformations you may want to pass in your own instance of TransformerFactory and
    TransformerFactoryConfigurer may help with that.
    Inspired by Issue #​264
    This is tracked as CVE-2024-31573.

  • JAXPXPathEngine will now try to disable the execution of extension functions by default but uses
    XPathFactory#setProperty which is not available prior to Java 18. You may want to enable secure processing on an
    XPathFactory instance you pass to JAXPXPathEngine instead - and XPathFactoryConfigurer may help with that.


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 becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Aug 1, 2024
@renovate renovate bot requested a review from astrowq August 1, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants