transformers vulnerabilities
Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
- Registry
- PyPI
- Latest
- 5.23.0
- License
- Apache 2.0 License
32 known advisories
The latest version, 5.23.0, is not affected by any of them. Projects on older versions may be.
pip install 'transformers>=5.23.0'Is your project on an affected transformers?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for transformers
Hugging Face Transformers downloads custom generation code before trust consent
- Affected
- >=4.49.0 <=5.8.1
- Fixed in
- No fix released
Transformers save_pretrained path traversal allows arbitrary file writes through chat template names
- Affected
- <5.10.0
- Fixed in
- 5.10.0
huggingface/transformers: Arbitrary Code Execution During Model Initialization in the LightGlue Model Loading Path
- Affected
- <5.5.0
- Fixed in
- 5.5.0
HuggingFace transformers vulnerable to remote code execution
- Affected
- <5.3.0
- Fixed in
- 5.3.0
HuggingFace Transformers allows for arbitrary code execution in the `Trainer` class
- Affected
- <5.0.0rc3
- Fixed in
- 5.0.0rc3
No summary published
- Affected
- <=4.57.1
- Fixed in
- No fix released
No summary published
- Affected
- <=5.0.0-rc0
- Fixed in
- No fix released
No summary published
- Affected
- <=4.57.0
- Fixed in
- No fix released
No summary published
- Affected
- <=4.57.0
- Fixed in
- No fix released
No summary published
- Affected
- <=4.57.0
- Fixed in
- No fix released
No summary published
- Affected
- <=4.55.0
- Fixed in
- No fix released
No summary published
- Affected
- <=4.54.1
- Fixed in
- No fix released
No summary published
- Affected
- <=4.54.1
- Fixed in
- No fix released
Hugging Face Transformers vulnerable to Regular Expression Denial of Service (ReDoS) in the AdamWeightDecay optimizer
- Affected
- <4.53.0
- Fixed in
- 4.53.0
Hugging Face Transformers library has Regular Expression Denial of Service
- Affected
- <4.53.0
- Fixed in
- 4.53.0
Hugging Face Transformers is vulnerable to ReDoS through its MarianTokenizer
- Affected
- <4.53.0
- Fixed in
- 4.53.0
Hugging Face Transformers Regular Expression Denial of Service (ReDoS) vulnerability
- Affected
- <4.53.0
- Fixed in
- 4.53.0
Transformers is vulnerable to ReDoS attack through its DonutProcessor class
- Affected
- <4.52.1
- Fixed in
- 4.52.1
Transformers vulnerable to ReDoS attack through its SETTING_RE variable
- Affected
- >=4.49.0 <4.51.0
- Fixed in
- 4.51.0
Transformers vulnerable to ReDoS attack through its get_imports() function
- Affected
- <4.51.0
- Fixed in
- 4.51.0
Transformers's ReDoS vulnerability in get_configuration_file can lead to catastrophic backtracking
- Affected
- <4.51.0
- Fixed in
- 4.51.0
Transformers's Improper Input Validation vulnerability can be exploited through username injection
- Affected
- <4.52.1
- Fixed in
- 4.52.1
Hugging Face Transformers Regular Expression Denial of Service
- Affected
- <4.50.0
- Fixed in
- 4.50.0
Transformers Regular Expression Denial of Service (ReDoS) vulnerability
- Affected
- <4.50.0
- Fixed in
- 4.50.0
Transformers Regular Expression Denial of Service (ReDoS) vulnerability
- Affected
- <4.48.0
- Fixed in
- 4.48.0
Deserialization of Untrusted Data in Hugging Face Transformers
- Affected
- <4.48.0
- Fixed in
- 4.48.0
Deserialization of Untrusted Data in Hugging Face Transformers
- Affected
- <4.48.0
- Fixed in
- 4.48.0
Deserialization of Untrusted Data in Hugging Face Transformers
- Affected
- <4.48.0
- Fixed in
- 4.48.0
Transformers Deserialization of Untrusted Data vulnerability
- Affected
- <4.38.0
- Fixed in
- 4.38.0
transformers has a Deserialization of Untrusted Data vulnerability
- Affected
- <4.36.0
- Fixed in
- 4.36.0
transformers has a Deserialization of Untrusted Data vulnerability
- Affected
- <4.36.0
- Fixed in
- 4.36.0
transformers has Insecure Temporary File
- Affected
- <4.30.0
- Fixed in
- 4.30.0
Is your transformers version vulnerable?
- transformers 5.23No known advisories in 5.23.0
- transformers 5.22No known advisories in 5.22.2
- transformers 5.21No known advisories in 5.21.1
- transformers 5.20No known advisories in 5.20.2
- transformers 5.19No known advisories in 5.19.0
- transformers 5.18No known advisories in 5.18.0
- transformers 4.576 advisories in 4.57.6
- transformers 4.5610 advisories in 4.56.2
- transformers 4.5510 advisories in 4.55.4
- transformers 4.5413 advisories in 4.54.1
- transformers 4.5313 advisories in 4.53.3
- transformers 4.5217 advisories in 4.52.4
- transformers 3.530 advisories in 3.5.1
- transformers 3.430 advisories in 3.4.0
- transformers 3.330 advisories in 3.3.1
- transformers 3.230 advisories in 3.2.0
- transformers 3.130 advisories in 3.1.0
- transformers 3.030 advisories in 3.0.2
Which of your client projects still run an old transformers?
NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.
Other PyPI packages
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.