SQL Injection Affecting org.springframework.data:spring-data-jpa package, versions [3.0.0, 4.0.7)[4.1.0, 4.1.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (10th 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 Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKDATA-19267482
  • published26 Aug 2026
  • disclosed20 Aug 2026
  • creditSharlongWen

Introduced: 20 Aug 2026

NewCVE-2026-47834  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade org.springframework.data:spring-data-jpa to version 4.0.7, 4.1.1 or higher.

Overview

org.springframework.data:spring-data-jpa is a package that is used to implement JPA based repositories.

Affected versions of this package are vulnerable to SQL Injection in the validation of Sort parameters when crafted payloads are accepted from untrusted sources and used without prior sanitization in native SQL repository methods. An attacker can infer data characteristics or cause limited information disclosure and disruption by supplying specially crafted non-ASCII input to endpoints that accept sorting parameters and use them in native queries.

Note: This is only exploitable if the repository method is annotated with @NativeQuery or @Query(nativeQuery=true), accepts Sort or Pageable parameters, and the underlying database allows non-ASCII characters in SQL syntax.

CVSS Base Scores

version 4.0
version 3.1