Skip to content

Jaxb2RootElementHttpMessageConverter is susceptible to XXE vulnerability [SPR-11376] #16003

Closed
@spring-projects-issues

Description

@spring-projects-issues

Spase Markovski opened SPR-11376 and commented

For background information, see XXE vulnerability.

This seems to not have been fixed in Jaxb2RootElementHttpMessageConverter when it was fixed in Jaxb2CollectionHttpMessageConverter. The way it is solved in Jaxb2CollectionHttpMessageConverter is by hard coding the property for resolving external entities to false. See #15432 and the attached patch.

By default the XML parser will parse and replace external entities. Also there is no way to configure how Jaxb2RootElementHttpMessageConverter handles external entities.


Affects: 3.2.5

Attachments:

Issue Links:

Backported to: 3.2.8

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions