A vulnerability in huggingface/transformers versions <=5.8.0.dev0 allows an attacker to perform arbitrary file writes via path traversal. The issue resides in the save_pretrained() methods of PreTrainedTokenizerBase and ProcessorMixin, where keys from the chat_template dictionary...
Product
huggingface/transformers vulnerabilities
20 published CVES affecting huggingface/transformers, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 20
- Critical
- 2
- High
- 10
- Medium
- 7
- Low
- 1
- Unscored
- 0
- CISA KEV
- 0
Latest huggingface/transformers CVEs
Newest publication first
-
HighCVSS 7.1 EPSS 0.46%
-
CVE-2026-5241 Policy Bypass in LightGlue Nested Config Resolution in huggingface/transformers
PublishedCriticalCVSS 9.6 EPSS 0.60%A vulnerability in the LightGlue model loading path of huggingface/transformers version 5.2.0 allows an attacker-controlled model repository to execute arbitrary code during model initialization. The issue arises because the trust_remote_code parameter, intended to prevent remote...
-
HighCVSS 7.8 EPSS 0.70%
A critical remote code execution vulnerability exists in all versions of the HuggingFace transformers library prior to version 5.3.0. The vulnerability allows an attacker to craft a malicious config.json file containing the _attn_implementation_internal field set to an attacker-c...
-
HighCVSS 7.8 EPSS 0.39%
A vulnerability in the HuggingFace Transformers library, specifically in the Trainer class, allows for arbitrary code execution. The _load_rng_state() method in src/transformers/trainer.py at line 3059 calls torch.load() without the weights_only=True parameter. This issue affects...
-
HighCVSS 7.5 EPSS 0.51%
The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (ReDoS) in the AdamWeightDecay optimizer. The vulnerability arises from the _do_use_weight_decay method, which processes user-controlled regular expressions in th...
-
MediumCVSS 5.3 EPSS 0.38%
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically within the normalize_numbers() method of the EnglishNormalizer class. This vulnerability affects versions up to 4.52.4 and is fixed in version 4.53.0...
-
HighCVSS 7.5 EPSS 0.56%
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically affecting the MarianTokenizer's remove_language_code() method. This vulnerability is present in version 4.52.4 and has been fixed in version 4.53.0....
-
MediumCVSS 5.3 EPSS 0.45%
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Hugging Face Transformers library, specifically in the convert_tf_weight_name_to_pt_weight_name() function. This function, responsible for converting TensorFlow weight names to PyTorch format, uses a regex...
-
MediumCVSS 5.3 EPSS 0.50%
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically within the DonutProcessor class's token2json() method. This vulnerability affects versions 4.50.3 and earlier, and is fixed in version 4.52.1. The is...
-
LowCVSS 3.5 EPSS 0.42%
Hugging Face Transformers versions up to 4.49.0 are affected by an improper input validation vulnerability in the image_utils.py file. The vulnerability arises from insecure URL validation using the startswith() method, which can be bypassed through URL username injection. This a...
-
MediumCVSS 5.3 EPSS 0.50%
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically in the get_imports() function within dynamic_module_utils.py. This vulnerability affects versions 4.49.0 and is fixed in version 4.51.0. The issue ar...
-
MediumCVSS 5.3 EPSS 0.50%
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically in the get_configuration_file() function within the transformers.configuration_utils module. The affected version is 4.49.0, and the issue is resolve...
-
HighCVSS 7.5 EPSS 0.49%
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository, specifically in version 4.49.0. The vulnerability is due to inefficient regular expression complexity in the SETTING_RE variable within the transformers/command...
-
HighCVSS 7.5 EPSS 0.61%
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) attack. The regular expression used to process code blocks in docstrings contains nes...
-
MediumCVSS 6.5 EPSS 0.49%
A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenization_gpt_neox_japanese.py of the GPT-NeoX-Japanese model. The vulnerability occurs in the SubWordJapaneseTokenizer class, where re...
-
HighCVSS 7.5 EPSS 0.75%
A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenization_nougat_fast.py. The vulnerability occurs in the post_process_single() function, where a regular expression processes speciall...
-
CriticalCVSS 9.6 EPSS 2.1%
The huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data within the load_repo_checkpoint() function of the TFPreTrainedModel() class. Attackers can execute arbitrary code and commands by crafting a malicious serializ...
-
HighCVSS 7.8 EPSS 0.73%
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.
-
HighCVSS 8.8 EPSS 0.92%
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.
-
MediumCVSS 4.7 EPSS 0.28%
Insecure Temporary File in GitHub repository huggingface/transformers prior to 4.30.0.
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.