Hugging Face Transformers vulnerabilities
CVEs that NVD lists for Hugging Face Transformers, newest first. NVD names the product cpe:2.3:a:huggingface:transformers; every CVE here lists a version of it as affected. The CISA KEV column marks the ones CISA lists as exploited in the wild.
Source: the National Vulnerability Database CVE API, https://nvd.nist.gov/developers/vulnerabilities, queried by each product’s CPE name, read weekly. CVEs published since November 27, 2023 (the last three years). Checked: November 27, 2026.
Download: CSV, under CC BY 4.0.
Cite as: CIOPages, “Vulnerabilities in AI software,” https://www.ciopages.com/trackers/ai-software-vulnerabilities/product/hugging-face-transformers, from the NVD CVE API, checked November 27, 2026. CC BY 4.0.
| CVE | Description | Published | CVSS | CWE | CISA KEV | Checked |
|---|---|---|---|---|---|---|
| CVE-2026-5241 | 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… | 2026-06-03 | 9.6 Critical v3.1 | CWE-829 | 2026-11-27 | |
| CVE-2026-4372 | 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… | 2026-05-24 | 7.8 High v3.0 | CWE-1066, CWE-502 | 2026-11-27 | |
| CVE-2026-1839 | 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… | 2026-04-07 | 7.8 High v3.1 | CWE-502 | 2026-11-27 | |
| CVE-2025-14930 | Hugging Face Transformers GLM4 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this… | 2025-12-23 | 7.8 High v3.0 | CWE-502 | 2026-11-27 | |
| CVE-2025-14929 | Hugging Face Transformers X-CLIP Checkpoint Conversion Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required… | 2025-12-23 | 7.8 High v3.0 | CWE-502 | 2026-11-27 | |
| CVE-2025-14928 | Hugging Face Transformers HuBERT convert_config Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this… | 2025-12-23 | 7.8 High v3.0 | CWE-94 | 2026-11-27 | |
| CVE-2025-14927 | Hugging Face Transformers SEW-D convert_config Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this… | 2025-12-23 | 7.8 High v3.0 | CWE-94 | 2026-11-27 | |
| CVE-2025-14926 | Hugging Face Transformers SEW convert_config Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this… | 2025-12-23 | 7.8 High v3.0 | CWE-94 | 2026-11-27 | |
| CVE-2025-14924 | Hugging Face Transformers megatron_gpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit… | 2025-12-23 | 7.8 High v3.0 | CWE-502 | 2026-11-27 | |
| CVE-2025-14921 | Hugging Face Transformers Transformer-XL Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to… | 2025-12-23 | 7.8 High v3.0 | CWE-502 | 2026-11-27 | |
| CVE-2025-14920 | Hugging Face Transformers Perceiver Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit… | 2025-12-23 | 7.8 High v3.0 | CWE-502 | 2026-11-27 | |
| CVE-2025-6921 | 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… | 2025-09-23 | 7.5 High v3.1 | CWE-400 | 2026-11-27 | |
| CVE-2025-6051 | 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… | 2025-09-14 | 5.3 Medium v3.0 | CWE-1333 | 2026-11-27 | |
| CVE-2025-6638 | 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… | 2025-09-12 | 7.5 High v3.1 | CWE-1333 | 2026-11-27 | |
| CVE-2025-5197 | 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… | 2025-08-06 | 5.3 Medium v3.0 | CWE-1333 | 2026-11-27 | |
| CVE-2025-3933 | 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… | 2025-07-11 | 5.3 Medium v3.1 | CWE-1333 | 2026-11-27 | |
| CVE-2025-3777 | 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… | 2025-07-07 | 3.5 Low v3.0 | CWE-20 | 2026-11-27 | |
| CVE-2025-3264 | 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… | 2025-07-07 | 5.3 Medium v3.0 | CWE-1333 | 2026-11-27 | |
| CVE-2025-3263 | 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… | 2025-07-07 | 5.3 Medium v3.0 | CWE-1333 | 2026-11-27 | |
| CVE-2025-3262 | 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… | 2025-07-07 | 7.5 High v3.1 | CWE-1333 | 2026-11-27 | |
| CVE-2025-2099 | 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… | 2025-05-19 | 7.5 High v3.1 | CWE-1333 | 2026-11-27 | |
| CVE-2025-1194 | 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… | 2025-04-29 | 6.5 Medium v3.1 | CWE-1333 | 2026-11-27 | |
| CVE-2024-12720 | 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… | 2025-03-20 | 7.5 High v3.1 | CWE-1333 | 2026-11-27 | |
| CVE-2024-11394 | Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this… | 2024-11-22 | 8.8 High v3.1 | CWE-502 | 2026-11-27 | |
| CVE-2024-11393 | Hugging Face Transformers MaskFormer Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit… | 2024-11-22 | 8.8 High v3.1 | CWE-502 | 2026-11-27 | |
| CVE-2024-11392 | Hugging Face Transformers MobileViTV2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this… | 2024-11-22 | 8.8 High v3.1 | CWE-502 | 2026-11-27 | |
| CVE-2024-3568 | 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… | 2024-04-10 | 9.6 Critical v3.1 | CWE-502 | 2026-11-27 | |
| CVE-2023-7018 | Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. | 2023-12-20 | 7.8 High v3.1 | CWE-502 | 2026-11-27 | |
| CVE-2023-6730 | Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. | 2023-12-19 | 8.8 High v3.1 | CWE-502 | 2026-11-27 |
More ai frameworks. All AI software.
This product uses the NVD API but is not endorsed or certified by the NVD. CVE links open the National Vulnerability Database. Descriptions are the CNA’s text as NVD publishes it, shortened here to 280 characters; the CSV has it in full. CVSS is the base score NVD lists for one CVE, version 3.1 where given, else 4.0, else 3.0: it is not a rating of a product or its vendor. Rows are ordered by the date NVD published them. The CISA KEV column comes from the CISA Known Exploited Vulnerabilities catalog, checked November 27, 2026. Change log.