sentence-transformers@0.3.1 vulnerabilities

State-of-the-Art Text Embeddings

Direct Vulnerabilities

Known vulnerabilities in the sentence-transformers package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Arbitrary Code Execution

sentence-transformers is a State-of-the-Art Text Embeddings

Affected versions of this package are vulnerable to Arbitrary Code Execution when loading PyTorch model files. The torch.load() function, used without the weights_only=True parameter, could deserialize malicious Python objects from manipulated model files.

How to fix Arbitrary Code Execution?

Upgrade sentence-transformers to version 3.1.0 or higher.

[,3.1.0)