[AMQ-8348] Fix XmlMessageRenderer has the risk of XStream deserialization

This commit is contained in:
xingrufei 2021-08-05 15:50:28 +08:00
parent f7f52ccc7a
commit 099108239c
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;
}