diff --git a/CHANGELOG b/CHANGELOG index 9d15e56538..a18d618bc5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Use defusedxml to parse XML (11244) + Version 6.0.4 - 2022-01-15 * Bug fixes (see mercurial logs for details) diff --git a/proteus/config.py b/proteus/config.py index e2244eb606..5373be56ba 100644 --- a/proteus/config.py +++ b/proteus/config.py @@ -11,8 +11,12 @@ import urllib.parse import xmlrpc.client from decimal import Decimal +import defusedxml.xmlrpc + __all__ = ['set_trytond', 'set_xmlrpc', 'get_config'] +defusedxml.xmlrpc.monkey_patch() + def dump_decimal(self, value, write): value = {'__class__': 'Decimal', diff --git a/setup.py b/setup.py index 94e82c2e1a..25f0c40fe2 100755 --- a/setup.py +++ b/setup.py @@ -98,6 +98,7 @@ setup(name=name, license='LGPL-3', python_requires='>=3.6', install_requires=[ + 'defusedxml', "python-dateutil", ], extras_require={