Skip to content

Use 'yaml.safe_load' in 'load_yaml_from_docstring' #278

@lbeaufort

Description

@lbeaufort

Hi there! 👋Thanks for providing a great project.

Because yaml.load() has known security issues, would it be feasible to use the existing yaml.safe_load() option instead of yaml.load() here for load_yaml_from_docstring? I'm happy to put in a PR if you agree. It looks like Ansible has been using only yaml.safe_load() since v1.1.

It doesn't look like there's been much activity by PyYAML to move forward with making load() safe by default. Here is the pending PyYAML 4.2 release plan: yaml/pyyaml#193

The PyYAML security vulnerability is being flagged for our FEC API.

Please let me know if you have any questions, and thanks!
Laura

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions