Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Hugging Face Transformers versions before 4.53.0 are vulnerable to regular expression denial of service in the AdamWeightDecay optimizer. An attacker who can control the regex patterns in the include_in_weight_decay or exclude_from_weight_decay lists can cause catastrophic backtracking, pegging CPU at 100% and hanging the task or making a service unresponsive. Upgrade to transformers 4.53.0 or later.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 5.3 | Medium | 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | CNA (@huntr_ai) |
- CISA KEV Not listed.
- EPSS 0.0051, the 44th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:34 UTC First seen by agentprime
- 31 Oct 2026, 14:34 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-4w7r-h757-3r74
- OSV: GHSA-4w7r-h757-3r74
- nvd.nist.gov/vuln/detail/CVE-2025-6921
- github.com/huggingface/transformers/commit/47c34fba5c303576560cb29767efb452ff12b8be
- github.com/huggingface/transformers/commit/d37f7517972f67e3f2194c000ed0f87f064e5099
- github.com/huggingface/transformers
- huntr.com/bounties/287d15a7-6e7c-45d2-8c05-11e305776f1f