Fix security bug: Deserialization of Untrusted Data 46/12146/1
authorDavid Garcia <david.garcia@canonical.com>
Tue, 31 May 2022 09:01:09 +0000 (11:01 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Tue, 31 May 2022 09:01:09 +0000 (11:01 +0200)
Change-Id: I6228e249bdb0acf6f18924910fbb7105fc519eb4
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/k8s_helm_base_conn.py

index 952630a..d446b9b 100644 (file)
@@ -1888,7 +1888,7 @@ class K8sHelmBaseConnector(K8sConnector):
             for key in params:
                 value = params.get(key)
                 if "!!yaml" in str(value):
-                    value = yaml.load(value[7:])
+                    value = yaml.safe_load(value[7:])
                 params2[key] = value
 
             values_file = get_random_number() + ".yaml"