{"id":54245,"library":"xstream","title":"XStream","description":"XStream is a serialization library from Java objects to XML and back.","status":"active","version":"1.4.21","language":"java","source_language":null,"source_url":"https://github.com/x-stream/xstream","tags":["xml","serialization","xstream"],"install":[{"cmd":"<dependency>\n  <groupId>com.thoughtworks.xstream</groupId>\n  <artifactId>xstream</artifactId>\n  <version>1.4.21</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.thoughtworks.xstream:xstream:1.4.21'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"XStream","correct":"com.thoughtworks.xstream.XStream"}],"quickstart":{"code":"import com.thoughtworks.xstream.XStream;\n\npublic class Quickstart {\n    public static void main(String[] args) {\n        XStream xstream = new XStream();\n        Person p = new Person();\n        p.name = \"John\";\n        String xml = xstream.toXML(p);\n        System.out.println(xml);\n    }\n}\n\nclass Person {\n    public String name;\n}","lang":"java","description":"Serialize a POJO to XML using XStream."},"warnings":[{"fix":"Use XStream.setupDefaultSecurity() and restrict permitted classes.","message":"XStream is vulnerable to deserialization attacks if not properly configured.","severity":"breaking","affected_versions":"<1.4.20"}],"env_vars":null,"search_vec":"'back':13 'java':8 'librari':6 'object':9 'serial':5,15 'xml':11,14 'xstream':1,2,16","created_at":"2026-06-15T08:53:45.378498+00:00","updated_at":"2026-06-15T08:53:45.378498+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://x-stream.github.io","github":"https://github.com/x-stream/xstream","docs":"https://appdoc.app/artifact/com.thoughtworks.xstream/xstream/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}