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
Tighten deserialization allowlist regex to require full-string match (#66499)
* Tighten deserialization allowlist regex to use full-string match
The ``allowed_deserialization_classes_regexp`` allowlist used ``re.match()``,
which only anchors at the start of the string. A pattern like
``airflow\.models\.Variable`` therefore also admitted classnames such as
``airflow.models.Variable_Malicious``. Switch to ``re.fullmatch()`` so the
admin's pattern matches the entire classname; document the semantics in
the config description so operators know to use ``.*`` for prefix-style
allowances.
* Add newsfragment for #66499
---------
Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
0 commit comments