{"cve":"CVE-2025-6051","nvd":{"published":"2025-09-14T17:15:34.210","modified":"2026-09-30T23:10:00.237","status":"Analyzed","description":"A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically within the `normalize_numbers()` method of the `EnglishNormalizer` class. This vulnerability affects versions up to 4.52.4 and is fixed in version 4.53.0. The issue arises from the method's handling of numeric strings, which can be exploited using crafted input strings containing long sequences of digits, leading to excessive CPU consumption. This vulnerability impacts text-to-speech and number normalization tasks, potentially causing service disruption, resource exhaustion, and API vulnerabilities.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-1333"],"references":["https://github.com/huggingface/transformers/commit/ba8eaba9865618253f997784aa565b96206426f0","https://huntr.com/bounties/af929523-7b59-418a-bf55-301830b2ac9d"],"products":["huggingface:transformers"],"source":"nvd","synced_at":"2026-10-19T22:08:41.295252406+00:00"},"epss":{"cve":"CVE-2025-6051","score":0.00382,"percentile":0.31893,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-rcv9-qm8p-9p6j","url":"https://osv.dev/vulnerability/GHSA-rcv9-qm8p-9p6j","summary":"Hugging Face Transformers library has Regular Expression Denial of Service","modified":"2026-09-10T03:50:28.694224028Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":["<4.53.0"],"fixed":["4.53.0"]}]},{"id":"PYSEC-2026-1988","url":"https://osv.dev/vulnerability/PYSEC-2026-1988","summary":"Hugging Face Transformers library has Regular Expression Denial of Service","modified":"2026-07-07T17:48:14.970960025Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":["<4.53.0"],"fixed":["4.53.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}