update pyyaml to fix CVE-2017-18342 #1666
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In PyYAML before 4.1, the yaml.load() API could execute arbitrary code. In other words, yaml.safe_load is not used. See https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-18342
PyYAML released 4.1 but then pulled it from PyPi. See yaml/pyyaml#207 for some discussion. https://github.com/yaml/pyyaml/tree/release/4.2 is the ongoing release branch, but nothing has been committed since July when 4.2b4 was released to PyPi
I have a project using my fork, with PyYaml updated to 4.2b4 and everything seems to be working fine.
Additionally the travis tests passed (and my project that includes mkdocs no longer triggers a vulnerability alert due to the unsafe version of PyYAML).