Fixing LCM vulnerabilities
[osm/LCM.git] / osm_lcm / lcm.py
index 5f630b2..8932d89 100644 (file)
@@ -759,7 +759,7 @@ class Lcm:
         try:
             # read file as yaml format
             with open(config_file) as f:
-                conf = yaml.load(f, Loader=yaml.Loader)
+                conf = yaml.safe_load(f)
             # Ensure all sections are not empty
             for k in (
                 "global",