slachiewicz opened a new issue, #3613:
URL: https://github.com/apache/maven-surefire/issues/3613

   Affected version: master at d7c7e359e.
   
   `FailsafeSummaryXmlUtils.toRunResult` 
(maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/util/FailsafeSummaryXmlUtils.java:76-104)
 passes a raw `InputSource` to `XPath.evaluate("/", ..., NODE)` using a plain 
`XPathFactory.newInstance()`. There are no 
`XMLConstants.FEATURE_SECURE_PROCESSING`, `disallow-doctype-decl`, or 
external-entity settings anywhere in this module's main source, so a summary 
file containing a DOCTYPE with an external entity would be resolved while 
reading it.
   
   Expected behavior: configure the parser/factory with secure processing, 
disable DOCTYPE declarations, and disable external general and parameter 
entities. A regression test can feed a summary containing a DOCTYPE and assert 
that it is rejected without resolving the external reference.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to