Skip to content

get rid of eval #1056

Closed
Closed

Description

@KOLANICH
No description provided.

Activity

  1. EpicWink commented on Jun 30, 2025

    @EpicWink
    Contributor

    Replace with ast.literal_eval.

    The two uses are literally just loading the value for no_word_spacing from the language info, which I'm sure can be manipulated by malicious clients to run arbitrary code in protected environments in some scenarios (eg if user can add arbitrary language-info, and user provides their language/locale, and protected application uses dateparser to parse dates using provided language/locale).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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