Skip to content

Commit

Permalink
Use yaml.safe_load, the safe version of yaml.load (CVE-2017-18342)
Browse files Browse the repository at this point in the history
Helps with: pyvec#12
encukou committed Apr 5, 2019
1 parent a7edea9 commit c4b127e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naucse_hooks.py
Original file line number Diff line number Diff line change
@@ -73,7 +73,7 @@ def _iterate(folder: Path):
going deeper to folders and yielding link parsed link files
"""
for child in folder.glob("**/link.yml"): # type: Path
fork = yaml.load(child.read_text())
fork = yaml.safe_load(child.read_text())
yield fork


0 comments on commit c4b127e

Please sign in to comment.