#VU122993 Inefficient regular expression complexity in transformers - CVE-2025-2099
Published: February 17, 2026
transformers
huggingface
Description
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to insufficient input validation when processing untrusted input with a regular expressions in the in the `preprocess_string()` function of the `transformers.testing_utils` module. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.