Uploaded image for project: 'Commons Text'
  1. Commons Text
  2. TEXT-224

Set SecureProcessing feature in XmlStringLookup by default

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10.0
    • 1.11.0
    • None

    Description

      https://github.com/apache/commons-text/blob/master/src/main/java/org/apache/commons/text/lookup/XmlStringLookup.java

      We could set this:

      xpf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, Boolean.TRUE);

       

      There is more that could be done but this feature would probably be clean enough to roll out - compared to other options like pre-loading the XML using a DocumentBuilder that might be configured to disable External Entities or DTD loading generally.

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            pj.fanning PJ Fanning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: