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() #1

Closed
gkmr507 opened this issue Jul 13, 2020 · 0 comments · Fixed by #2
Closed

Unsafe usage of PyYAML yaml.load() #1

gkmr507 opened this issue Jul 13, 2020 · 0 comments · Fixed by #2
Assignees

Comments

@gkmr507
Copy link
Owner

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)

https://github.com/dougli1sqrd/yamldown/blob/480957d59da215e75be9c0b4312406a18185bb9b/yamldown/yamldown.py#L34

@gkmr507 gkmr507 self-assigned this Jul 13, 2020
@gkmr507 gkmr507 closed this as completed Jul 13, 2020
@gkmr507 gkmr507 reopened this Jul 13, 2020
@gkmr507 gkmr507 changed the title Unsafe usage of PyYAML yaml.load() sample Jul 13, 2020
@gkmr507 gkmr507 linked a pull request Jul 13, 2020 that will close this issue
@gkmr507 gkmr507 closed this as completed Jul 13, 2020
@gkmr507 gkmr507 changed the title sample Unsafe usage of PyYAML yaml.load() Jul 13, 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

Successfully merging a pull request may close this issue.

1 participant