COR-337: Fix vulnerabilities related to XML parsing