Spring AiFramework / library · VMware

CVE-2026-22729

HIGH · 8.6 CVSS v3.1 Published 2026-03-18
Fix available
A fix is available. Upgrade to 1.0.4 / 1.1.3 or later.
See remediation →
95/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
A JSONPath injection vulnerability in Spring AI's AbstractFilterExpressionConverter allows authenticated users to bypass metadata-based access controls through crafted filter expressions. User-controlled input passed to FilterExpressionBuilder is concatenated into JSONPath queries without proper escaping, enabling attackers to inject arbitrary JSONPath logic and access unauthorized documents. This vulnerability affects applications using vector stores that extend AbstractFilterExpressionConverter for multi-tenant isolation, role-based access control, or document filtering based on metadata. The vulnerability occurs when user-supplied values in filter expressions are not escaped before being inserted into JSONPath queries. Special characters like ", ||, and && are passed through unescaped, allowing injection of arbitrary JSONPath logic that can alter the intended query semantics.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

A JSONPath injection vulnerability in Spring AI's AbstractFilterExpressionConverter allows authenticated users to bypass metadata-based access controls. User-controlled input passed to FilterExpressionBuilder is concatenated into JSONPath queries without proper escaping of special characters like quotes, ||, and &&, enabling injection of arbitrary JSONPath logic to access unauthorized documents.

MitigationImplement proper escaping of user-supplied values in filter expressions before they are concatenated into JSONPath queries, ensuring special characters cannot alter query semantics.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Spring AiFramework / library
Affected:>= 1.0.0, < 1.0.4>= 1.1.0, < 1.1.3

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify the installed Spring AI version
    Locate the Spring AI dependency in your project (Maven pom.xml, Gradle build.gradle, or the spring-ai-core JAR manifest) and note the exact version number
    Affected if The version is 1.0.0 through 1.0.3, or 1.1.0 through 1.1.2
  2. Determine if FilterExpressionBuilder is in use
    Search your codebase for imports or references to org.springframework.ai.filter.expression.FilterExpressionBuilder or classes extending AbstractFilterExpressionConverter
    Affected if Your application uses FilterExpressionBuilder to construct filter expressions from user data
  3. Audit filter input sources
    Trace data flow to FilterExpressionBuilder methods and identify which request parameters, headers, or body fields feed into filter construction
    Affected if User-supplied or external input is passed directly to filter expression methods without sanitization
  4. Check for unescaped special characters in filter logic
    Review how filter values are processed; look for code that concatenates raw user input into JSONPath query strings without applying escaping for quotes, ||, or &&
    Affected if The application builds JSONPath queries by concatenating unsanitized user input containing special characters
  5. Verify access control enforcement
    Test whether filter-based access controls properly restrict document access when injecting JSONPath operators (e.g., ||, &&) or alternate field values in filter parameters
    Affected if Injected JSONPath logic can bypass intended metadata-based access restrictions

You are affected if your Spring AI version falls within 1.0.0-1.0.3 or 1.1.0-1.1.2 AND user input flows into FilterExpressionBuilder without escaping special characters that could alter JSONPath query semantics.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 1.0.4 / 1.1.3 or later
Fixed in 1.0.41.1.3
Interim mitigation

Implement proper escaping of user-supplied values in filter expressions before they are concatenated into JSONPath queries, ensuring special characters cannot alter query semantics.

Recommended fix High confidence

Spring AI 1.0.4 or 1.1.3

  1. Identify your current Spring AI version by checking your project's pom.xml or build.gradle file
  2. For Maven projects: Update the spring-ai-bom version in your dependencyManagement section to 1.0.4 or 1.1.3, for example: <version.spring.ai>1.0.4</version.spring.ai>
  3. For Maven projects: Update all spring-ai-* starter dependencies to the same version (1.0.4 or 1.1.3)
  4. For Gradle projects: Update the springAiVersion property in gradle.properties to 1.0.4 or 1.1.3, for example: springAiVersion=1.0.4
  5. Run mvn clean compile or ./gradlew build to fetch the updated dependencies
  6. Review the Spring AI 1.0.4 and 1.1.3 release notes for any relevant changes to filter expression handling
  7. Test your application's filter expressions and document access controls to verify the fix works correctly
  8. Ensure multi-tenant isolation and role-based access controls still function as expected after the upgrade
Caveat Minor version upgrades typically contain backward-compatible fixes; however, review release notes for any changes to FilterExpressionBuilder API behavior

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Spring Ai Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing5.0 h
  • Review / QA3.0 h
17.0 hours of engineering $2,970
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,752.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-22729 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-22729 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data