From 26433b7c067b950cc516dcb04e87f55491454b6e Mon Sep 17 00:00:00 2001 From: virtualdj Date: Tue, 7 May 2024 22:54:29 +0200 Subject: [PATCH] Usa defusedxml per prevenire vulnerabilita' nel parsing XML; closes #43 --- custom_components/pun_sensor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/pun_sensor/__init__.py b/custom_components/pun_sensor/__init__.py index d24492f..7cfe098 100644 --- a/custom_components/pun_sensor/__init__.py +++ b/custom_components/pun_sensor/__init__.py @@ -4,7 +4,7 @@ from statistics import mean import zipfile, io from bs4 import BeautifulSoup -import xml.etree.ElementTree as et +import defusedxml.ElementTree as et from typing import Tuple from functools import partial