
CVE catalog
CVE-2025-5197
Hugging Face Transformers Regular Expression Denial of Service (ReDoS) vulnerability
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.40% · Oct 25, 2026
A flaw was found in transformers. The `convert_tf_weight_name_to_pt_weight_name()` function contains a Regular Expression Denial of Service (ReDoS) vulnerability, where a maliciously crafted input string can cause excessive backtracking during regular expression matching. This flaw allows a network-based attacker to trigger this condition by providing a specially designed string as input. This results in a denial of service due to resource exhaustion. transformers: Transformers ReDoS Vulnerability The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| PyPI | transformers | Not reported | 4.53.0 | fixed |
| PyPI | transformers | Not reported | 4.53.0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| PyPI | transformers | PyPI | Not reported | 4.53.0 | Not reported | PYSEC-2026-1983 | Not reported |
| PyPI | transformers | PyPI | Not reported | 4.53.0 | Not reported | GHSA-9356-575X-2W9M | Not reported |
OpenFactory catalog packages
No matching packages in this catalog.
Observed: