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

Closed
gkmr507 opened this issue Jul 13, 2020 · 2 comments
Closed

Unsafe usage of PyYAML yaml.load() #495

gkmr507 opened this issue Jul 13, 2020 · 2 comments

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)

const latestContent = yaml.load(latestPath);

@gkmr507
Copy link
Author

gkmr507 commented Jul 21, 2020

pull #2 will resolve this issue.

@ronniechong
Copy link
Collaborator

Thank you for bringing this up!

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

2 participants