pypi package report

Is sentence-transformers safe?

1 known vulnerability, worst severity CRITICAL.

// reach

20 direct dependencies

8 carry known advisories, worst CRITICAL

111 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai models

211 published models carry an advisory from this package

0 pin a version the advisory is confirmed against; the rest declare it without a version.

Alibaba-NLP/gme-Qwen2-VL-2B-InstructCRITICALnot pinned
Alibaba-NLP/gte-Qwen2-1.5B-instructCRITICALnot pinned

211 published models

0 declared · 211 observed · 0 inferred

ModelEvidence
aari1995/German_Semantic_STS_V2observed
ai-forever/FRIDAobserved
Create a free accountto see all 209 models and per-model risk

211 published AI models are associated with this package: 0 name it in a requirements or pyproject file, 211 load it or import it directly, and 0 are inferred from the runtime stack their declared library pulls in. Only 0 state a version requirement, so this is not a count of affected models.


cvss
0.0
critical

severity out of 10

epss
0.00%
medium

chance of exploitation in 30 days, 58th percentile of all CVEs

xyz score
0.0
medium

CyberXYZ composite out of 10

fig. 01 — GHSA-jhr6-gm9c-rqjv, the advisory selected below

// 1 advisories

GHSA-jhr6-gm9c-rqjv

CRITICALCVE-2026-68770

sentence-transformers contains a security control bypass vulnerability that allows attackers to achieve arbitrary code execution by exploiting a logic flaw in the importmoduleclass helper within sentencetransformers/util/misc.py, where the guard condition includes an 'or os.path.exists(modelnameorpath)' clause that satisfies the trust gate whenever the supplied path exists on the local filesystem, regardless of the trustremotecode=False argument. Attackers who can control or influence the contents of a model directory on disk can place malicious Python files such as modeling.py referenced via modules.json, causing the code to execute at import time when an application loads the model with SentenceTransformer(path, trustremotecode=False), bypassing the documented security contract and achieving code execution within the loading process.

// cvss v3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Checked 2026-10-01 at 23:55 UTC. The most recent advisory here was published 2026-07-31. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.