You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Activity
EpicWink commentedon Jun 30, 2025
Replace with
ast.literal_eval.The two uses are literally just loading the value for
no_word_spacingfrom 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 usesdateparserto parse dates using provided language/locale).