Insufficiently Protected Credentials Affecting org.springframework.ai:spring-ai-autoconfigure-model-transformers package, versions [,1.0.6)[1.1.0-M1, 1.1.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKAI-16316420
  • published28 Apr 2026
  • disclosed27 Apr 2026
  • creditUnknown

Introduced: 27 Apr 2026

NewCVE-2026-40979  (opens in a new tab)
CWE-522  (opens in a new tab)

How to fix?

Upgrade org.springframework.ai:spring-ai-autoconfigure-model-transformers to version 1.0.6, 1.1.5 or higher.

Overview

org.springframework.ai:spring-ai-autoconfigure-model-transformers is a Spring AI ONNX Transformers Auto Configuration

Affected versions of this package are vulnerable to Insufficiently Protected Credentials via the default cache directory used by TransformersEmbeddingModel. An attacker can access and retrieve the ONNX model by reading files from the shared environment cache when caching is enabled with the default location, leading to unintended exposure of model artifacts.

CVSS Base Scores

version 4.0
version 3.1