Apache OpenNLP DictionaryEntryPersistor Vulnerable to XML External Entity (XXE) via Unsanitized Dictionary Parsing
What to do
- Upgrade to a fixed version: org.apache.opennlp:opennlp-tools 3.0.0-M3, org.apache.opennlp:opennlp-tools 2.5.9, org.apache.opennlp:opennlp-tools 1.9.5.
- Redeploy and restart long-running processes so they load the fixed code.
Affected packages
org.apache.opennlp:opennlp-tools
- >= 3.0.0-M1, < 3.0.0-M3
- 3.0.0-M3
Check your project: mvn dependency:tree -Dincludes=org.apache.opennlp:opennlp-tools
org.apache.opennlp:opennlp-tools
- >= 2.0.0, < 2.5.9
- 2.5.9
Check your project: mvn dependency:tree -Dincludes=org.apache.opennlp:opennlp-tools
org.apache.opennlp:opennlp-tools
- < 1.9.5
- 1.9.5
Check your project: mvn dependency:tree -Dincludes=org.apache.opennlp:opennlp-tools