Intel

AIKIDO-2026-688219

spring-ai-transformers is vulnerable to Path Traversal

Path TraversalCVE-2026-59294 Published Aug 21, 2026

59

Medium Risk

This Affects:

JAVAspring-ai-transformers
0.0.1 - 2.0.0
Fixed in 2.0.1
Are you affected? Scan for Free

TL;DR

spring-ai-transformers ResourceCacheService.getCacheName() appends a URI fragment to the cache filename without stripping separators or ... A crafted fragment can write downloaded bytes outside the cache directory. Tenant configuration or an admin UI that supplies the model URI is enough to trigger this. The patch sanitizes the fragment before building the cache path.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and model or tokenizer URIs from a less-trusted source are passed to TransformersEmbeddingModel.

Background info

spring-ai-transformers is vulnerable to Path Traversal in versions 0.0.1 - 2.0.0.

How to fix this

Upgrade the org.springframework.ai:spring-ai-transformers library to the patch version.