diff --git a/spring-framework-reference/src/oxm.xml b/spring-framework-reference/src/oxm.xml index 7a33b99097..38c6ef6924 100644 --- a/spring-framework-reference/src/oxm.xml +++ b/spring-framework-reference/src/oxm.xml @@ -667,12 +667,29 @@ public class Application { ... ]]> - + - Note that XStream is an XML serialization library, not a data binding library. Therefore, it has - limited namespace support. As such, it is rather unsuitable for usage within Web services. + By default, XStream allows for arbitrary classes to be unmarshalled, which can result in security + vulnerabilities. + As such, it is recommended to set the supportedClasses property on the + XStreamMarshaller, like so: + + + ... +]]> + This will make sure that only the registered classes are eligible for unmarshalling. - + + Additionally, you can register + custom converters to make sure that only your supported classes can be unmarshalled. + + + + + Note that XStream is an XML serialization library, not a data binding library. Therefore, it has + limited namespace support. As such, it is rather unsuitable for usage within Web services. + +