Advisory record · GHSA-59p9-h35m-wg4g

Hugging Face Transformers is vulnerable to ReDoS through its MarianTokenizer

CVSS 5.3 MediumEPSS 0.0056 · 46th percentile

Published by the GitHub Advisory Database at 12 Sept 2025, 12:30 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-59p9-h35m-wg4g · CVE-2025-6638 · PYSEC-2026-1981
Weakness (CWE)
CWE-1333
Published
12 Sept 2025
Updated
10 Sept 2026

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, is vulnerable to a regular expression denial of service in the MarianTokenizer's remove_language_code() method. An attacker who can supply crafted input strings with malformed language code patterns can cause excessive CPU consumption and denial of service. Upgrade to transformers 4.53.0 or later.

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

Timeline

  1. 31 Oct 2026, 14:29 UTC First seen by agentprime
  2. 31 Oct 2026, 14:29 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.