-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Closed
Copy link
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug
Milestone
Description
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:
- jaxb2-converter-patch.txt (6.66 kB)
Issue Links:
- Fix potential security risk when using Spring OXM [SPR-10806] #15432 Fix potential security risk when using Spring OXM
- Disable the processing of external entities in SourceHttpMessageConverter by default [SPR-11078] #15704 Disable the processing of external entities in SourceHttpMessageConverter by default
- AbstractMarshaller should avoid SAXSource workaround when processExternalEntities=true [SPR-11737] #16359 AbstractMarshaller should avoid SAXSource workaround when processExternalEntities=true
Backported to: 3.2.8
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug