Skip to content

Disable DTD and external entities support in XmlEventDecoder to prevent XXE and XML bomb attack [SPR-15797] #20352

@spring-projects-issues

Description

@spring-projects-issues

Takuya Iwatsuka opened SPR-15797 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:

Referenced from: commits e4651d6

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions