Live threats

All CVEs / Huggingface

CVE-2025-6051Huggingface Transformers

Medium 5.3 No auth needed

Priority
47
CVSS 3.0
5.3
EPSS
—
Auth required
No
Published
Sep 14, 2025
Updated
Sep 30, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Transformers.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI transformers < 4.53.0 4.53.0 pip install "transformers>=4.53.0"
PyPI transformers < 4.53.0 4.53.0 pip install "transformers>=4.53.0"

Per OSV / GitHub Advisories (GHSA-rcv9-qm8p-9p6j, PYSEC-2026-1988). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
huggingfacetransformers4.52.4

Official sources

References

Links published by the sources. Open them with care.