Skip to content

v1.1.0 — Spring Boot 4.2 and Spring AI 2.1

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 03:25
· 32 commits to main since this release
25847ab

Spring Boot 4.2 and Spring AI 2.1

AF4J 1.1.0 is built on Spring Boot 4.2 and Spring AI 2.1. The API of AF4J itself does not change: this release moves the platform under it.

Why

The last public releases of Spring Framework 6.2, Spring AI 1.0 and Spring AI 1.1 date from June 2026. The security advisories published since then are fixed on those lines for commercial support only, and in the open on Spring Framework 7 and Spring AI 2. AF4J 1.0.x is built on the older lines, so a dependency scanner reports those advisories against it.

One of them touches a guarantee of AF4J directly. With CVE-2026-59318, a model can run a tool the request never offered, as long as Spring AI's global resolver knows its name. The ExecutorAgent never wrapped that tool, so on Spring AI 1.0 and 1.1 the call skips ToolPolicy and the tool-call record. Spring AI 2.1 refuses such a call by default.

Changed

  • Baseline. The published jars are now compiled against Spring Boot 4.2.0, Spring Framework 7.1.0, Spring AI 2.1.0 and the MCP SDK 2.2.0. Before: Spring Boot 3.5.16, Spring Framework 6.2.19, Spring AI 1.0.9 and the MCP SDK 1.1.5.
  • Java. Unchanged: Java 17 is still the minimum.

Upgrading

  • Move the application to Spring Boot 4.2 and Spring AI 2.1 first. That migration is the work: Spring Boot 4 brings Spring Framework 7 and Jackson 3. Once the application runs there, AF4J 1.1.0 needs no code change coming from 1.0.2.
  • Staying on Spring Boot 3.5. Stay on AF4J 1.0.2. The AF4J source is still compiled and tested against Spring AI 1.0 and 1.1 on every build, but the 1.1.0 jars are not proven to run unchanged on those lines. To close CVE-2026-59318 there, declare a resolver that knows nothing. The price is that tools referenced by name with toolNames(...) no longer resolve:
@Bean
ToolCallbackResolver toolCallbackResolver() {
    return toolName -> null;
}

Install

<dependency>
    <groupId>io.github.datallmhub</groupId>
    <artifactId>agentflow4j-starter</artifactId>
    <version>1.1.0</version>
</dependency>