Skip to content

Commit c39e5a7

Browse files
committed
Update qhelp: SnakeYaml is safe from version 2.0
1 parent 439cf7a commit c39e5a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ Recommendations specific to particular frameworks supported by this query:
6464
<p></p>
6565
<p><b>SnakeYAML</b> - <code>org.yaml:snakeyaml</code></p>
6666
<ul>
67-
<li><b>Secure by Default</b>: No</li>
68-
<li><b>Recommendation</b>: Pass an instance of <code>org.yaml.snakeyaml.constructor.SafeConstructor</code> to <code>org.yaml.snakeyaml.Yaml</code>'s constructor before using it to deserialize untrusted data.</li>
67+
<li><b>Secure by Default</b>: As of version 2.0.</li>
68+
<li><b>Recommendation</b>: For versions before 2.0, pass an instance of <code>org.yaml.snakeyaml.constructor.SafeConstructor</code> to <code>org.yaml.snakeyaml.Yaml</code>'s constructor before using it to deserialize untrusted data.</li>
6969
</ul>
7070
<p></p>
7171
<p><b>XML Decoder</b> - <code>Standard Java Library</code></p>

0 commit comments

Comments
 (0)