diff --git a/lib/cuckoo/common/integrations/parse_office.py b/lib/cuckoo/common/integrations/parse_office.py index 3be9fb54901..0cf7c15bb5d 100644 --- a/lib/cuckoo/common/integrations/parse_office.py +++ b/lib/cuckoo/common/integrations/parse_office.py @@ -101,8 +101,11 @@ def _get_xml_meta(self, filepath) -> Dict[str, Dict[str, str]]: metares = {"SummaryInformation": {}, "DocumentSummaryInformation": {}} for elem in core._get_documentElement().childNodes: - n = elem._get_tagName() try: + if isinstance(elem, xml.dom.minidom.Text): + continue + + n = elem._get_tagName() data = core.getElementsByTagName(n) if not data: continue