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

(cherry picked from commit 099108239c)
This commit is contained in:
xingrufei 2021-08-05 15:50:28 +08:00 committed by Jean-Baptiste Onofré
parent ec23ab93dd
commit 0b28d92280
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;
}