Advisory record · GHSA-37mw-44qp-f5jm

Transformers is vulnerable to ReDoS attack through its DonutProcessor class

CVSS 5.3 MediumEPSS 0.0050 · 43rd percentile

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

PackageEcosystemAffectedFixed in
transformersPyPI<4.52.14.52.1
Identifiers
GHSA-37mw-44qp-f5jm · CVE-2025-3933 · PYSEC-2026-1977
Weakness (CWE)
CWE-1333
Published
11 Jul 2025
Updated
10 Sept 2026

Machine-written summary

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

Transformers versions before 4.52.1 are vulnerable to a regular expression denial of service in the DonutProcessor class's token2json() method, caused by a regex pattern that can backtrack catastrophically on crafted input. An attacker who can supply crafted input strings to this method can drive up CPU usage and disrupt the service. Upgrade to transformers 4.52.1 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.0050, the 43rd percentile, on 17 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.