Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f328e84

Browse files
committed
Python: Mention yaml.safe_load in the qhelp
1 parent 8a2e063 commit f328e84

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

python/ql/src/Security/CWE-502/UnsafeDeserialization.qhelp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Avoid deserialization of untrusted data if at all possible. If the
2424
architecture permits it then use other formats instead of serialized objects,
2525
for example JSON.
2626
</p>
27+
<p>
28+
If you need to use YAML, use the <code>yaml.safe_load</code> function.
29+
</p>
2730
</recommendation>
2831

2932
<example>

0 commit comments

Comments
 (0)