google / cyanobyte

Machine-readable datasheets
https://cyanobyte.dev
Apache License 2.0
79 stars 31 forks source link

Replace yaml.load with yaml.safe_load #276

Closed Fleker closed 1 year ago

Fleker commented 1 year ago

A specific kind of YAML file with the text

!!python/object/apply:os.system ["touch /tmp/vulnerable.txt"]

may cause the underlying command to be executed, which is not intended. This change loads the YAML file in a safer, non-executable way.