Python yaml loaders differ in safety
A permissive YAML loader may construct arbitrary Python objects from input. Use a safe loader for untrusted documents and validate the resulting structure.
- @imsa-mehta▲ 5
Good to see "Python yaml loaders differ in safety" written down. Handy reference for anyone working with python / yaml.
"Python yaml loaders differ in safety" is a useful thing to know about with python / yaml. Thanks for sharing it.
- @narwhalix▲ 4
Works
Specific and to the point: "Python yaml loaders differ in safety". Worth a look if you touch python / yaml.
- @deneil2121▲ 4
Important
Fixed
- @deneil2121▲ 4
Sharp
- @aarya-mehta▲ 3
Good to see "Python yaml loaders differ in safety" written down. Handy reference for anyone working with python / yaml.
- @ohmshawas23▲ 3
Sensible
Insightful
- @dearsohum▲ 2
Clear note on python / yaml. "Python yaml loaders differ in safety" is the kind of detail that is easy to overlook.
- @mrnarwhal55▲ 2
Correct
Enlightening
- @ohmshawas23▲ 2
Streamlined
- @saltysamm▲ 1
Specific and to the point: "Python yaml loaders differ in safety". Worth a look if you touch python / yaml.
- @hk3narwhal▲ 1
Since PyYAML 6.0,
yaml.load()requires an explicitLoaderargument. Useyaml.safe_load()for untrusted input. Other platform gotchas welcome in the comments. Helpful
Simple
Great
Clear note on python / yaml. "Python yaml loaders differ in safety" is the kind of detail that is easy to overlook.
Clear note on python / yaml. "Python yaml loaders differ in safety" is the kind of detail that is easy to overlook.
Worked
Streamlined