Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsafe usage of PyYAML yaml.load() #8

Open
gkmr507 opened this issue Jul 13, 2020 · 1 comment
Open

Unsafe usage of PyYAML yaml.load() #8

gkmr507 opened this issue Jul 13, 2020 · 1 comment

Comments

@gkmr507
Copy link

gkmr507 commented Jul 13, 2020

The default behavior of PyYAML's yaml.load() method is unsafe and can execute code in yaml files.
yaml.safe_load() should be used instead:yaml/pyyaml#193 (comment)

yml_dict = yaml.load(yml_contents.contents, Loader=yaml.FullLoader) # type: Dict

@gkmr507 gkmr507 closed this as completed Jul 21, 2020
@gkmr507 gkmr507 reopened this Jul 21, 2020
@gkmr507
Copy link
Author

gkmr507 commented Jul 21, 2020

pull #2 will resolve this issue.

@gkmr507 gkmr507 closed this as completed Jul 21, 2020
@gkmr507 gkmr507 reopened this Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant