Merge pull request #697 from skyguard1/fix_xstream_xml_risk

[AMQ-8348] Fix XmlMessageRenderer has the risk of XStream deserialization
This commit is contained in:
Jean-Baptiste Onofré 2021-08-06 07:19:16 +02:00 committed by GitHub
commit 4fd439e91d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public class XmlMessageRenderer extends SimpleMessageRenderer {
public XStream getXstream() {
if (xstream == null) {
xstream = new XStream();
XStream.setupDefaultSecurity(xstream);
}
return xstream;
}