CISA list

● PyPI package

transformers

Transformers has 32 security advisories. The newest release any of them names as the fix is 5.10.0.

As of , transformers has 32 security advisories. The newest release any of them names as the fix is 5.10.0.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
Before 5.10.05.10.032 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-80047GHSA-x9r9-c232-4q39, PYSEC-2026-4174Hugging Face Transformers downloads custom generation code before trust consentHigh severityFrom 4.49.0 up to and including 5.8.1No fixed version listed
CVE-2026-9856GHSA-xrqw-3rrv-vx5w, PYSEC-2026-3929Transformers save_pretrained path traversal allows arbitrary file writes through chat template namesHigh severityBefore 5.10.05.10.0
CVE-2026-5241GHSA-fgcw-684q-jj6r, PYSEC-2026-2290huggingface/transformers: Arbitrary Code Execution During Model Initialization in the LightGlue Model Loading PathHigh severityBefore 5.5.05.5.0
CVE-2026-4372GHSA-29pf-2h5f-8g72, PYSEC-2026-2289HuggingFace transformers vulnerable to remote code executionHigh severityBefore 5.3.05.3.0
CVE-2026-1839GHSA-69w3-r845-3855, PYSEC-2026-2288HuggingFace Transformers allows for arbitrary code execution in the `Trainer` classModerate severityBefore 5.0.05.0.0
CVE-2025-14930PYSEC-2025-218Hugging Face Transformers GLM4 Deserialization of Untrusted Data Remote Code Execution Vulnerability.Up to and including 4.57.1No fixed version listed
CVE-2025-14929PYSEC-2025-217Hugging Face Transformers X-CLIP Checkpoint Conversion Deserialization of Untrusted Data Remote Code Execution Vulnerability.Up to and including 5.0.0-rc0No fixed version listed
CVE-2025-14928PYSEC-2025-216Hugging Face Transformers HuBERT convertconfig Code Injection Remote Code Execution Vulnerability.Up to and including 4.57.0No fixed version listed
CVE-2025-14927PYSEC-2025-215Hugging Face Transformers SEW-D convertconfig Code Injection Remote Code Execution Vulnerability.Up to and including 4.57.0No fixed version listed
CVE-2025-14926PYSEC-2025-214Hugging Face Transformers SEW convertconfig Code Injection Remote Code Execution Vulnerability.Up to and including 4.57.0No fixed version listed
CVE-2025-14924PYSEC-2025-213Hugging Face Transformers megatrongpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability.Up to and including 4.55.0No fixed version listed
CVE-2025-14921PYSEC-2025-212Hugging Face Transformers Transformer-XL Model Deserialization of Untrusted Data Remote Code Execution Vulnerability.Up to and including 4.54.1No fixed version listed
CVE-2025-14920PYSEC-2025-211Hugging Face Transformers Perceiver Model Deserialization of Untrusted Data Remote Code Execution Vulnerability.Up to and including 4.54.1No fixed version listed
CVE-2025-6921GHSA-4w7r-h757-3r74, PYSEC-2026-1980Hugging Face Transformers vulnerable to Regular Expression Denial of Service (ReDoS) in the AdamWeightDecay optimizerModerate severityBefore 4.53.04.53.0
CVE-2025-6051GHSA-rcv9-qm8p-9p6j, PYSEC-2026-1988Hugging Face Transformers library has Regular Expression Denial of ServiceModerate severityBefore 4.53.04.53.0
CVE-2025-6638GHSA-59p9-h35m-wg4g, PYSEC-2026-1981Hugging Face Transformers is vulnerable to ReDoS through its MarianTokenizerModerate severityBefore 4.53.04.53.0
CVE-2025-5197GHSA-9356-575x-2w9m, PYSEC-2026-1983Hugging Face Transformers Regular Expression Denial of Service (ReDoS) vulnerabilityModerate severityBefore 4.53.04.53.0
CVE-2025-3933GHSA-37mw-44qp-f5jm, PYSEC-2026-1977Transformers is vulnerable to ReDoS attack through its DonutProcessor classModerate severityBefore 4.52.14.52.1
CVE-2025-3262GHSA-489j-g2vx-39wf, PYSEC-2026-1979Transformers vulnerable to ReDoS attack through its SETTING_RE variableModerate severityFrom 4.49.0 before 4.51.04.51.0
CVE-2025-3264GHSA-jjph-296x-mrcr, PYSEC-2026-1985Transformers vulnerable to ReDoS attack through its get_imports() functionModerate severityBefore 4.51.04.51.0
CVE-2025-3777GHSA-phhr-52qp-3mj4, PYSEC-2026-1986Transformers's Improper Input Validation vulnerability can be exploited through username injectionLow severityBefore 4.52.14.52.1
CVE-2025-3263GHSA-q2wp-rjmx-x6x9, PYSEC-2026-1987Transformers's ReDoS vulnerability in get_configuration_file can lead to catastrophic backtrackingModerate severityBefore 4.51.04.51.0
CVE-2025-2099GHSA-qq3j-4f4f-9583, PYSEC-2025-40Hugging Face Transformers Regular Expression Denial of ServiceModerate severityBefore 4.50.04.50.0
CVE-2025-1194GHSA-fpwr-67px-3qhx, PYSEC-2026-1984Transformers Regular Expression Denial of Service (ReDoS) vulnerabilityModerate severityBefore 4.50.04.50.0
CVE-2024-12720GHSA-6rvg-6v2m-4j46, PYSEC-2026-1982Transformers Regular Expression Denial of Service (ReDoS) vulnerabilityModerate severityBefore 4.48.04.48.0
CVE-2024-11394GHSA-hxxf-235m-72v3, PYSEC-2024-229Deserialization of Untrusted Data in Hugging Face TransformersHigh severityBefore 4.48.04.48.0
CVE-2024-11393GHSA-wrfc-pvp9-mr9g, PYSEC-2024-228Deserialization of Untrusted Data in Hugging Face TransformersHigh severityBefore 4.48.04.48.0
CVE-2024-11392GHSA-qxrp-vhvm-j765, PYSEC-2024-227Deserialization of Untrusted Data in Hugging Face TransformersHigh severityBefore 4.48.04.48.0
CVE-2024-3568GHSA-37q5-v5qm-c9v8, PYSEC-2026-1978Transformers Deserialization of Untrusted Data vulnerabilityLow severityBefore 4.38.04.38.0
CVE-2023-7018GHSA-v68g-wm8c-6x7j, PYSEC-2023-301transformers has a Deserialization of Untrusted Data vulnerabilityHigh severityBefore 4.36.04.36.0
CVE-2023-6730GHSA-3863-2447-669p, PYSEC-2023-300transformers has a Deserialization of Untrusted Data vulnerabilityCritical severityBefore 4.36.04.36.0
CVE-2023-2800GHSA-282v-666c-3fvg, PYSEC-2023-299transformers has Insecure Temporary FileModerate severityBefore 4.30.04.30.0

Other PyPI packages

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0
  • Package advisories from the PyPA advisory database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0