Advisory record · GHSA-9356-575x-2w9m

Hugging Face Transformers Regular Expression Denial of Service (ReDoS) vulnerability

CVSS 5.3 MediumEPSS 0.0045 · 39th percentile

Published by the GitHub Advisory Database at 6 Aug 2025, 12:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
transformersPyPI<4.53.04.53.0
Identifiers
GHSA-9356-575x-2w9m · CVE-2025-5197 · PYSEC-2026-1983
Weakness (CWE)
CWE-1333
Published
6 Aug 2025
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Transformers (PyPI package, though the input only says "transformers") versions before 4.53.0 are vulnerable to regular expression denial of service in the convert_tf_weight_name_to_pt_weight_name() function. An attacker who can supply crafted weight name strings to this function can cause excessive CPU consumption and service disruption. Upgrade to transformers 4.53.0 or later.

Written 5 Nov 2026.

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

ScoreRatingCVSSVectorSource
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.0045, the 39th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:34 UTC First seen by agentprime
  2. 31 Oct 2026, 14:34 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.