Metrics:
Total lines of code: 455
Total lines skipped (#nosec): 0

yaml_load: Use of unsafe yaml load. Allows instantiation of arbitrary objects. Consider yaml.safe_load().
Test ID: B506
Severity: MEDIUM
Confidence: HIGH
CWE: CWE-20
File: /custom_nodes/ComfyUI-Video-Matting/comfyui_vidmatt/utils.py
Line number: 10
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b506_yaml_load.html
6	from PIL import ImageColor
7	
8	config_path = os.path.join(os.path.dirname(__file__), "../config.yaml")
9	if os.path.exists(config_path):
10	    config = yaml.load(open(config_path, "r"), Loader=yaml.FullLoader)
11	else:
12	    raise Exception("config.yaml file is neccessary, plz recreate the config file by downloading it from https://github.com/Fannovel16/ComfyUI-Video-Matting")
13	CKPTS_PATH = os.path.join(os.path.join(os.path.dirname(__file__), '..'), config["ckpts_path"])