Advisory record · GHSA-qq3j-4f4f-9583

A vulnerability in the `preprocess_string()` function of the `transformers.testing_utils` module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS...

CVSS 5.3 MediumEPSS 0.0060 · 49th percentile

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

PackageEcosystemAffectedFixed in
transformersPyPI<8cb522b4190bd556ce51be04942720650b1a3e57 || <4.49.08cb522b4190bd556ce51be04942720650b1a3e57, 4.49.0
Identifiers
GHSA-qq3j-4f4f-9583 · CVE-2025-2099 · PYSEC-2025-40
Weakness (CWE)
CWE-1333
Published
19 May 2025
Updated
10 Jun 2026

Machine-written summary

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

Versions of transformers before 4.49.0 are vulnerable to a regular expression denial of service in the preprocess_string() function of transformers.testing_utils. An attacker who can supply a specially crafted input with many newline characters can cause high CPU usage and application downtime. Upgrade to transformers 4.49.0 or later.

Written 10 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.0060, the 49th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

This record came from the full history of the GitHub Advisory Database, published 19 May 2025. New records show when each source confirmed them.

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.