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

try_except_pass: Try, Except, Pass detected.
Test ID: B110
Severity: LOW
Confidence: HIGH
CWE: CWE-703
File: /custom_nodes/comfyui-prompt-reader-node/stable_diffusion_prompt_reader/sd_prompt_reader/format/a1111.py
Line number: 111
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b110_try_except_pass.html
107	                single_line_prompt += " --seed_resize_from_w " + seed_resize_from_w
108	                single_line_prompt += " --seed_resize_from_h " + seed_resize_from_h
109	            try:
110	                (tag, is_str) = A1111.PROMPT_MAPPING.get(key)
111	            except:
112	                pass
113	            else:
114	                if is_str:
115	                    single_line_prompt += " --" + tag + " " + add_quotes(str(value))
blacklist: Using minidom to parse untrusted XML data is known to be vulnerable to XML attacks. Replace minidom with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called.
Test ID: B408
Severity: LOW
Confidence: HIGH
CWE: CWE-20
File: /custom_nodes/comfyui-prompt-reader-node/stable_diffusion_prompt_reader/sd_prompt_reader/image_data_reader.py
Line number: 7
More info: https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_imports.html#b408-import-xml-minidom
3	__copyright__ = "Copyright 2023"
4	__email__ = "receyuki@gmail.com"
5	
6	import json
7	from xml.dom import minidom
8	
9	import piexif
10	import piexif.helper
blacklist: Using xml.dom.minidom.parseString to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.dom.minidom.parseString with its defusedxml equivalent function or make sure defusedxml.defuse_stdlib() is called
Test ID: B318
Severity: MEDIUM
Confidence: HIGH
CWE: CWE-20
File: /custom_nodes/comfyui-prompt-reader-node/stable_diffusion_prompt_reader/sd_prompt_reader/image_data_reader.py
Line number: 126
More info: https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_calls.html#b313-b320-xml-bad-minidom
122	                            print("Fooocus format error")
123	                    # drawthings format
124	                    elif "XML:com.adobe.xmp" in self._info:
125	                        try:
126	                            data = minidom.parseString(
127	                                self._info.get("XML:com.adobe.xmp")
128	                            )
129	                            data_json = json.loads(
130	                                data.getElementsByTagName("exif:UserComment")[0]
131	                                .childNodes[1]
try_except_pass: Try, Except, Pass detected.
Test ID: B110
Severity: LOW
Confidence: HIGH
CWE: CWE-703
File: /custom_nodes/comfyui-prompt-reader-node/stable_diffusion_prompt_reader/sd_prompt_reader/image_data_reader.py
Line number: 162
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b110_try_except_pass.html
158	                            )
159	                        except TypeError:
160	                            print("empty jpeg")
161	                            self._status = BaseFormat.Status.FORMAT_ERROR
162	                        except Exception:
163	                            pass
164	                        else:
165	                            try:
166	                                # swarm format