Make load safe_load
See original GitHub issue- Make
yaml.loaddefault to safe - Add
yaml.dangerous_loadto replaceyaml.load
Issue Analytics
- State:
- Created 10 years ago
- Reactions:7
- Comments:8 (3 by maintainers)
Top Results From Across the Web
js-yaml.safeLoad JavaScript and Node.js code examples
Helper to load landofile */ const loadLandoFile = file => { try { return yaml.safeLoad(fs.readFileSync(file)); } catch (e) { throw new Error(`There was...
Read more >Python difference between yaml.load and yaml.safe_load
The facilities to execute arbitrary Python code (which makes loading unsafe) are implemented in yaml.Loader which is used by default. yaml.
Read more >SafeLoad - Leica Geosystems
The only system of its kind, SafeLoad is the first portable, laser-based measurement and documentation product designed specifically for the dimensional load ......
Read more >Safeload: Home
Safeload is the #1 Preferred Product Choice in the transport industry. Our products are designed & tested to ensure that the vehicle or...
Read more >safeload-yaml-pmb - npm
This module re-exports the safeLoad or load function from js-yaml , depending on which of them is safe to use for loading YAML....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Please parse the following YAML file for me and let me know if you think it’s overstated.
Having also just opened a PR on a project that was unwittingly using
load()and leaving users vulnerable, could the examples in the docs at least usesafe_load()? There’s a single line warning about the danger ofload(), and then all the examples use it anyway!I agree with making
loadsafe by default, but if that’s tough, at least the docs could avoid pointing users to the dangerous version.