**[Takuya Iwatsuka](https://jira.spring.io/secure/ViewProfile.jspa?name=tiwatsuka)** opened **[SPR-15797](https://jira.spring.io/browse/SPR-15797?redirect=false)** and commented An instance of XMLInputFactory in XmlEventDecoder supports DTD and external entities. Because Jaxb2XMLDecoder uses XMLEventDecoder, this could be exploited to some kind of attack like XXE or XML Bomb. To prevent these attacks, it should disable support DTD and external entities by setting properties of XMLInputFactory. --- **Affects:** 5.0 RC2 **Issue Links:** - #17727 XML input vulnerability based on DTD declaration **Referenced from:** commits https://github.com/spring-projects/spring-framework/commit/e4651d6b50c5bc85c84ff537859c212ac4e33434