Skip to content

Whitelist yaml detection when using SafeLoader #25

@mschwager

Description

@mschwager

The following pyyaml calls should be safe:

yaml.load(..., Loader=yaml.SafeLoader)
yaml.load(..., Loader=yaml.CSafeLoader)

I believe this is equivalent to using safe_load, but I've encountered a few false positives in the wild using this code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions