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?
to your account
The pyyaml version specified here is vulnerable to to CVE-2017-18342.
Can this be upgraded without issue?
The text was updated successfully, but these errors were encountered:
It's unclear. The latest version of pyyaml on both PyPI and conda default repositories is 3.13. Evidently the project was taken over by an entirely new team, though I can't find any release of it under the same name.
Looks like 4.2 is not available yet: yaml/pyyaml#193 We are certainly happy to move on this as soon as a release is available
FWIW The CVE only seems to pertain to yaml.load. Here are all the instances of yaml.load in the codebase:
266 : examples = yaml.load(f.read())
131 : json = yaml.load(f)
109 : config = yaml.load(open(join(bokeh_dir, 'config')))
It would be reasonable to see if yaml.safe_load would work for all of those, in which case that would be a more proactive solution.
Testing seems to indicate that yaml.safe_load works fine for Bokeh's needs. I have pushed a PR that switches to only use safe_load. I will make an accelerated 1.0.4 release when this is merged.
Successfully merging a pull request may close this issue.