File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -69,21 +69,6 @@ from openapi_spec_validator import openapi_v3_spec_validator
69
69
errors_iterator = openapi_v3_spec_validator.iter_errors(spec)
70
70
```
71
71
72
- ## Security Note
73
-
74
- PyYAML, a requirement of this project, has a
75
- [ security vulnerability] ( https://nvd.nist.gov/vuln/detail/CVE-2017-18342 )
76
- in the default implementation of ` yaml.load() ` , which allows execution
77
- of arbitrary code while loading a target file or stream. OpenAPI Spec
78
- Validator uses a safe loader to ensure that only Python objects
79
- marked as safe can be executed. Thus, you are not exposed to this
80
- vulnerability by using this package.
81
-
82
- If you use ` PyYAML ` directly, be sure to use ` yaml.safe_load() ` to
83
- avoid inadvertantly exposing youself to potentially malicous data. The
84
- [ PyYAML docs] ( https://pyyaml.org/wiki/PyYAMLDocumentation#loading-yaml )
85
- describe this issue in detail.
86
-
87
72
## Related projects
88
73
89
74
* [ openapi-core] ( https://github.com/p1c2u/openapi-core ) is a Python library that adds client-side and server-side support for the OpenAPI.
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def run_tests(self):
69
69
},
70
70
install_requires = [
71
71
"jsonschema<3" ,
72
- "PyYAML>=3.13 " ,
72
+ "PyYAML>=5.1 " ,
73
73
"six" ,
74
74
'pathlib2;python_version=="2.7"' ,
75
75
],
You can’t perform that action at this time.
0 commit comments