What changed in spring-framework from 6 to 7
6 releases numbered after v6.2.19 up to and including v7.0.10, stable releases only. v6.2.19 and v7.0.10 are the newest stable releases of 6 and 7 we track; this page follows them as new ones ship.
- 16 CVEs mentioned
- 1 mentions breaking changes
- 1 removes or deprecates something
156 changes across 6 releases
- Introduce a builder for SpelParserConfiguration
- Allow null contextPath in ServerHttpRequest.Builder
- Support NaN and infinite float values in toString() for synthesized annotations
- Add @Nullable annotations where Map.remove() is treated as returning a nullable value
- Support for a custom ObjectInputFilter on DefaultDeserializer
- Include zone ID in CronTrigger's equals and hashCode implementations
- Expose ClassLoader from DefaultDeserializer
- Allow specifying the charset to use in ExchangeFilterFunctions#basicAuthentication
- Support JSON array decoding to Flux in KotlinSerializationJsonDecoder
- Add MockRestServiceServer#createServer variant for RestClient
- Create RestClientXhrTransport variant replacing RestTemplateXhrTransport
- Add registerManagedResource variant with bean key argument to MBeanExporter
- Add PreFlightRequestFilter
- Support configuration of extension context scope for SpringExtension via Spring or JUnit properties
- Introduce setDefaultCharset() in AbstractResourceBasedMessageSource
- Support for JPA 4.0 flush mode "explicit"
- Support application-wide defaultHtmlEscape setting in WebFlux RequestContext
- Support Predicate<RequestPath> in path API version resolver
- Add support for non-flushing OutputStream to StreamUtils
- Make it easier to get InputStream from RestClient
- Make it easier to create custom HttpExchangeAdapter
- Allow registering serialized lambda metadata through RuntimeHints
- Copy methodAnnotations in MethodParameter copy constructor
- Align DelegatingMessageSource fallback implementation with AbstractMessageSource
- Recognize relocated Mockito MockAccess interface in ProxyProcessorSupport
- Runtime compatibility with JPA 4.0 M7 and corresponding Hibernate 8.0 snapshots
- Avoid Kotlin reflection in MethodParameter for non-suspending functions
- Revise underscore naming fallback in SimplePropertyRowMapper
- Avoid useless queue operations in ConcurrentLruCache.clear()
- Lazily handle setClientInfo and setNetworkTimeout in LazyConnectionDataSourceProxy
- Avoid redundant filtering in FilteredMap.size()
- Use ArrayList instead of LinkedList in CompositeRetryListener
- The redirectedUrl() argument in MockMvcResultMatchers should be @Nullable
- Log broker availability events as String messages
- Remove redundant whitespace in exception messages
- ForwardedHeaderFilter (Spring MVC) and ForwardedHeaderTransformer (WebFlux) provide a boolean constructor argument to choose between the standard Forwarded header and the X-Forwarded alternative headers, with a separate property controlling X-Forwarded-Prefix; the default constructor preserves existing behaviour and is deprecated for removal in 7.1
- SimpleEvaluationContext no longer supports SpEL expression compilation by default, regardless of the configured compiler mode; compilation can be enabled explicitly by calling withCompilationSupported() on the builder
- Empty port values are ignored when parsing URIs
- Class files are no longer retained in annotation metadata
- SSE view fragments handling has been revisited
- List index is checked after auto-grow in AbstractNestablePropertyAccessor
- Result size of BigDecimal and BigInteger power operations in SpEL is limited
- Redirect handling in UrlHandlerFilter has been refactored
- Stylesheet source handling in XsltView has been revised
- View name handling in UrlFilenameViewController has been revised
- Pre-flight requests are handled in functional endpoint setup without DispatcherHandler
- WebSocket handshake error logging has been improved
- Native configuration files are written as UTF-8
- Resource bundle caching for common locales has been revised
- Nullability for getSession(*) in MockHttpServletRequest is improved
- Fallback logic in ParameterContentNegotiationStrategy and ParameterContentTypeResolver is improved
- Ambiguous match check on preflight requests is improved
- Groovy markup template loading is improved
- Request path handling on a Reactor Netty server is improved
- Track operations during SpEL expression evaluation
- Ensure getters have non-void return types in SpEL
- Avoid too many character access attempts in AntPathMatcher
- Restrict SpringVersion.getVersion() to major.minor.patch format
- Improve SpringValidatorAdapter and MethodValidationAdapter performance
- Improve error handling in multipart codecs
- Make ApplicationListenerMethodAdapter#getTargetMethod() public
- ApiVersionConfigurer.setSupportedVersionPredicate() returns void instead of ApiVersionConfigurer
- LazyConnectionDataSourceProxy works with Hibernate's multi-tenancy by schema strategy
- Handle blank Accept-Language header in AcceptHeaderLocaleResolver
- Make AbstractStreamingClientHttpRequest and AbstractBufferingClientHttpRequest public
- Lower log level of "Cache miss for REQUEST dispatch" in HandlerMappingIntrospector
- Log warning when default context configuration is ignored within test class hierarchies
- Ignore flush calls on ServletServerHttpResponse body outputstream
- Leverage ResourceHandlerUtils in ScriptTemplateView
- Restore ScriptTemplateViewTests
- Fix log message in ConfigurationClassBeanDefinitionReader
- Resolve context initializers only once in AbstractTestContextBootstrapper
- Invoke resolveContextLoader() only once in AbstractTestContextBootstrapper
- Further align synthesized annotation toString() with modern JDKs
- Avoid duplicate flushes in HttpMessageConverter implementations
- RuntimeHintsWriter should comply with reachability-metadata-schema-v1.2.0.json
- Improve ResourceHttpMessageConverter target type support
- Optimize request and response header handling in Spring MVC
- Consistent adaptation of HTTP headers on Servlet responses
- Improve performance of validation groups determination in WebFlux
- Reuse AnnotatedMethod annotation cache in derived instances
- Optimize the addition of a charset to the MediaType in AbstractHttpMessageConverter
- Optimize MediaType(MediaType, Charset) constructor
- Detect all common size exceptions from Tomcat and Commons FileUpload 2.x
- Consistently support @Autowired as a meta-annotation
- Avoid duplicate required attribute lookup for @Autowired annotations
- Cache @ResponseBody presence per controller class in RequestResponseBodyMethodProcessor
- Document that SpEL expressions using Optional with null-safe and Elvis operators are not compilable
- Improve documentation of baseline API version to emphasize version must be supported
- Stop referring to obsolete ListenableFuture in documentation
- Stop referring to standard Java features as Java 8 features in documentation
- HttpEntity(T, MultiValueMap) stores an HttpHeaders unchecked, causing IncompatibleClassChangeError inside RestTemplate
- PathMatchingResourcePatternResolver misses jars on java.class.path whose path contains %
- OpenInView no longer works with HibernateTransactionManager
- Published Gradle module file is missing javadocElements and sourcesElements
- Protobuf support classes all implement getMessageBuilder()
- Avoid unnecessary dependent-bean registration for autowire-by-type
- Handle zero readTimeout in JdkClientHttpConnector
- Race condition in PartGenerator.CreateFileState can lose the completion signal
- Paused executor with late shutdown leaks its worker thread and the closed context after close
- Fix hanging retries for Flux-returning methods with caching
- Avoid serving stale values after failed refill in AbstractIdentityColumnMaxValueIncrementer
- Copy cookies in RenderingResponse.from()
- Avoid phantom keys in LinkedCaseInsensitiveMap.computeIfAbsent
- Fix single-value adaptation for primitive array types in TypeMappedAnnotation
- CssLinkResourceTransformer fails for invalid CSS links
- Fix cached ID reuse after commit failure in MySQLMaxValueIncrementer
- Fix connection leak in MySQLMaxValueIncrementer
- CacheEvict truncates Flux results to the first element
- ConcurrentLruCache.clear() can miss entries added while it is running
- Enforce disk usage limit when spilling part to disk
- Prevent double size decrement in ConcurrentLruCache
- LogAccessor.debug(CharSequence) eagerly renders LogMessage since spring-core 7 switched from spring-jcl to commons-logging
- WebFlux loses empty multipart file when the file part is not last
- Complete empty Uni instances from the Mutiny reactive adapter
- DefaultAsyncServerResponse.writeAsync() discards previously configured AsyncWebRequest timeout
- Missing nullability in JdbcTemplate.batchUpdate is fixed
- Timeout property in RetryPolicy now has a default constant
- DefaultServerRequest.ServletParametersMap.entrySet() now retains HttpServletRequest.getParameterMap() order
- nextKey is performed within synchronization for SQLite as well
- JettyWebSocketSession error handling is improved
- EclipseLinkJpaDialect singleton lock that serializes JDBC connection acquisitions under load is resolved
- MetadataReader failure reading byte[] arrays from annotations is fixed
- Parsing and toString symmetry in ContentDisposition is ensured
- Characters outside the permitted range in Content-Disposition are handled correctly
- Jackson BufferRecycler is released to its pool in encoders
- MySQL Error 149 (Galera/WSREP conflict) translated to ConcurrencyFailureException in Spring JDBC/ORM
- WebDataBinder no longer unnecessarily instantiates collections when using the "!" and "_" prefixes
- Cache pollution from high-cardinality FieldError default messages in MessageSourceSupport
- MergedAnnotation uses ClassLoader for method or field
- @Sql works when DataSource is wrapped in a TransactionAwareDataSourceProxy
- AnnotatedTypeMetadata retains source declaration order on Java 24+
- MergedAnnotation.asMap() works when an attribute references a non-existent class
- DefaultResponseErrorHandler setMessageConverters() not called via RestClient
- AbstractHttpServletResponseAssert#headers case sensitivity
- ResolvableType#getGenerics() breaks serialization
- DefaultHttpMessageConverters not adding provided configurer
- Restore early MessageConsumer creation for temporary queue
- Multipart upload leak on client abort where ByteBuf.release() was not called
- Deprecate methodIdentification() in CacheAspectSupport for removal
- Fix predictable session ID in WebSocket module (CVE-2026-41838)
- Fix escalation via session fixation in WebFlux (CVE-2026-41839)
- Fix denial of service via multipart requests in WebFlux (CVE-2026-41840)
- Fix information disclosure via static resource cache in Spring MVC and WebFlux (CVE-2026-41841)
- Fix denial of service via versioned resources in Spring MVC and WebFlux (CVE-2026-41842)
- Fix path traversal via versioned static resources in Spring MVC and WebFlux (CVE-2026-41843)
- Fix open redirect in Spring MVC and WebFlux (CVE-2026-41844)
- Fix cross-site scripting via JavaScriptUtils (CVE-2026-41845)
- Fix cross-site scripting via JSP form tags (CVE-2026-41846)
- Fix denial of service via AntPathMatcher (CVE-2026-41848)
- Fix algorithmic denial of service via SpEL expressions (CVE-2026-41850)
- Fix denial of service via unbounded cache in SpEL (CVE-2026-41851)
- Fix arbitrary method invocation in SpEL expressions (CVE-2026-41852)
- Fix multipart request smuggling in Spring MVC and WebFlux (CVE-2026-41853)
- Fix server-side request forgery via UriComponentsBuilder (CVE-2026-41854)
- Fix unsafe deserialization via Jackson JMS converters (CVE-2026-41855)
Original release notes, newest first
The list above is our reading of these notes; the originals from spring-projects are here, one fold per release.
v7.0.10
:star: New Features
- Align
DelegatingMessageSourcefallback implementation withAbstractMessageSource#37383 HttpEntity(T, MultiValueMap)stores anHttpHeadersunchecked, causingIncompatibleClassChangeErrorinsideRestTemplate#37358- Recognize relocated Mockito
MockAccessinterface inProxyProcessorSupport#37342 - Runtime compatibility with JPA 4.0 M7 and corresponding Hibernate 8.0 snapshots #37315
- Avoid Kotlin reflection in MethodParameter for non-suspending functions #37300
- Revise underscore naming fallback in SimplePropertyRowMapper #37297
- Avoid useless queue ops in
ConcurrentLruCache.clear()#37292 PathMatchingResourcePatternResolvermisses jars onjava.class.pathwhose path contains%#37280- Remove redundant whitespace in exception messages #37277
- OpenInView does no longer work with HibernateTransactionManager #37273
- Lazily handle setClientInfo/setNetworkTimeout in LazyConnectionDataSourceProxy #37261
- Avoid redundant filtering in FilteredMap.size() #37256
- Support NaN and inifinite float values in
toString()for synthesized annotations #37244 - Use
ArrayListinstead ofLinkedListinCompositeRetryListener#37231 redirectedUrl()argument inMockMvcResultMatchersshould be@Nullable#37230- Published Gradle module file is missing
javadocElementsandsourcesElements#37209 - Introduce a builder for
SpelParserConfiguration#37187 - Protobuf support classes all implement getMessageBuilder() #37147
- Allow null contextPath in ServerHttpRequest.Builder #37099
- Log broker availability events as String messages #36856
:lady_beetle: Bug Fixes
- Avoid unnecessary dependent-bean registration for autowire-by-type #37424
- Handle zero readTimeout in JdkClientHttpConnector #37412
- Race condition in PartGenerator.CreateFileState can lose the completion signal #37409
- Paused executor with late shutdown leaks its worker thread (and the closed context) after close #37406
- Fix hanging retries for Flux-returning methods with caching #37403
- Avoid serving stale values after failed refill in
AbstractIdentityColumnMaxValueIncrementer#37402 - Copy cookies in
RenderingResponse.from()#37378 - Avoid phantom keys in
LinkedCaseInsensitiveMap.computeIfAbsent#37351 - Fix single-value adaptation for primitive array types in
TypeMappedAnnotation#37349 - CssLinkResourceTransformer fails for invalid CSS links #37336
- Fix cached ID reuse after commit failure in MySQLMaxValueIncrementer #37322
- Fix connection leak in MySQLMaxValueIncrementer #37321
@CacheEvicttruncatesFluxresults to the first element #37309ConcurrentLruCache.clear()can miss entries added while it's running #37287- Enforce disk usage limit when spilling part to disk #37285
- Prevent double size decrement in
ConcurrentLruCache#37268 - LogAccessor.debug(CharSequence) eagerly renders LogMessage since spring-core 7 switched from spring-jcl to commons-logging #37266
- WebFlux loses empty multipart file when the file part is not last. #37264
- Complete empty Uni instances from the Mutiny reactive adapter #37259
- DefaultAsyncServerResponse.writeAsync() discards previously configured AsyncWebRequest timeout #37257
- Provide missing native image hints for proxied hibernate 8 query types #37251
- Provide missing native image hint for StatelessSession proxy created by SharedEntityManagerCreator. #37249
- Provide missing native image reflection hint for hibernate PersistenceUnitInfoDescriptor. #37247
- Sort duplicate key codes in
SQLErrorCodes#37235 - Handle zero readTimeout in JdkClientHttpRequestFactory #37234
- Wrong reconnection attempt count in ReactorNettyTcpClient #37223
- Stored procedure OUT parameter values are lost outside a transaction as of 7.0.9 #37221
- Avoid int overflow in expiration time calculations in MockMvc and FlashMap #37208
- ScheduledAnnotationBeanPostProcessor doesn't correctly support bean destruction #37207
- Normalize function return parameter lookup in
CallMetaDataContext#37206 - Fix out-of-bounds read for truncated percent-escape in opaque host #37203
- ClassFileTransformerAdapter deadlocks between two persistence units under load-time weaving #37199
- Fix Kotlin value class handling for suspending AOP methods #37191
- Update to NullAway 0.14.0 and fix new warnings #37188
- ProtobufJsonEncoder emits JSON array when media type is ndjson #37158
- streamingMediaTypes in ProtobufJsonEncoder not a subset of encodableMimeTypes #37154
- Align
DataBufferUtils$WriteCompletionHandlerexception handling with theread()side #37145 DataBufferUtils.read()with NettyDataBuffer on JDK 25 hangs indefinitely #37143- Release queued body token buffers on multipart cancel #37115
- Preserve async API version resolver order #37096
- ClientResponse.mutate() builder can modify originalResponse headers. #37086
- Custom reason is overwritten by i18n message in ResponseStatusException.updateAndGetBody() #36984
- Generate compilable code for non-finite floating-point values #36965
- Render parameter type names in ClassFileMethodMetadata #36919
- Honor
sourceStartoffset inAbstractXMLStreamReader#getTextCharacters#36914 - Fix reserveMethodNames to reserve each supplied name #36912
- Replace thread-unsafe SimpleDateFormat with DateTimeFormatter in AbstractMockHttpServletRequestBuilder #36772
MockHttpServletRequest.isRequestedSessionIdValid()does not follow Servlet 6.1 Javadoc #36631- Map version from
@HttpExchangeto RequestMappingInfo #36602 - Ensure that ConversionService.canConvert(Enum) no longer throws an exception #34532
:notebook_with_decorative_cover: Documentation
- Fix incorrect class names in WebFlux and MVC docs #37467
- Document the XXE threat model of SourceHttpMessageConverter #37407
- Update instructions for importing projects into Eclipse IDE #37397
- Fix syntax errors in the reference manual #37392
- Fix Kotlin example in Spring MVC test docs #37388
- Document usage of
typeattribute in JSP<form:input>tag #37376 - Make
CONTRIBUTING.mdself-contained and addAGENTS.md#37372 - Clarify ConcurrentReferenceHashMap reference semantics #37357
- Add missing enclosing single quotes in Javadoc #37338
- Fix MockMvc async requests example in documentation #37318
- Add closing braces to examples #37305
- Fix typos in Javadoc #37229
- Further updates to Data Binding Content in Web Sections of Documentation #37228
- Add missing closing parenthesis in WebFlux config reference example #37163
- Use
<<id,text>>instead ofxref:for local links in reference docs #37161 - Fix broken internal xref links in reference docs #37152
- Fix Kotlin examples in the reference manual #37101
- Document combining
@Retryablewith proxy-based features #37005 - Update recommendations for web data binding #36789
:hammer: Dependency Upgrades
:heart: Contributors
Thank you to all the contributors who worked on this release:
@Gabriel-Gerhardt, @Gimini-3, @SebTardif, @a-kogun, @cj848, @cookie-meringue, @dmitrysulman, @garvit-joshi, @geonheeryu, @guanchengang, @hunseonglee, @jhan0121, @junhyeong9812, @kodacme, @lejuho, @moonfruit, @msridhar, @ngocnhan-tran1996, @noojung, @renatomameli, @rene-schakmann, @shaggyinsomniac, @timtebeek, and @xoruddl
v7.0.9
:warning: Attention Required
- In Spring Framework 7.0.9,
ForwardedHeaderFilter(Spring MVC) andForwardedHeaderTransformer(WebFlux) each provide a boolean constructor argument whether to use the standard "Forwarded" header or the "X-Forwarded" alternative headers. A separate property turns on and off use of "X-Forwarded-Prefix". While the default constructor preserves the existing behavior, we recommend to use the new constructor to explicitly specify which forwarded headers to use to make the processing more deterministic and aligned with what is expected from the proxy. Please, see the updated Security Considerations section for details. In 7.1 with #37072 the default constructor is deprecated and marked for removal. #37090 - In Spring Framework 7.0.9,
SimpleEvaluationContextno longer supports expression compilation by default, regardless of the compiler mode configured viaSpelParserConfigurationor thespring.expression.compiler.modesystem property or Spring property. Applications that intentionally useSimpleEvaluationContextwith trusted expressions and require compilation for performance reasons can opt in by callingwithCompilationSupported()on theSimpleEvaluationContextbuilder. Care should be taken when opting in to compilation, as doing so removes the safety guards applied during interpreted evaluation. #37035
:star: New Features
- Ignore an empty port value in URI parsing #37117
- Avoid retaining class files in annotation metadata #37112
- Add
@Nullableannotations when treatingMap.remove()as returning@Nullable#37067 - Revisit SSE view fragments handling #37061
- Check list index after auto-grow in
AbstractNestablePropertyAccessor#37036 - Disable SpEL expression compilation by default in
SimpleEvaluationContext#37035 - Limit result size of
BigDecimal/BigIntegerpower operations in SpEL #37034 - Refactor redirect handling in UrlHandlerFilter #37030
- Revise stylesheet source handling in XsltView #37029
- Revise view name handling in UrlFilenameViewController #37027
- Handle pre-flight requests in functional endpoint setup without DispatcherHandler #37024
- Improve WebSocket handshake error logging #37023
- Fix missing nullability in JdbcTemplate.batchUpdate #37012
- Timeout property in RetryPolicy does not have a default constant #36983
- Write native configuration files as UTF-8 #36972
- DefaultServerRequest.ServletParametersMap.entrySet() does not retain HttpServletRequest.getParameterMap() order #36966
- Perform nextKey within synchronization for SQLite as well #36959
- Add support for custom ObjectInputFilter on DefaultDeserializer #36958
- Revise resource bundle caching for common locales #36957
- Improve nullability for
getSession(*)inMockHttpServletRequest#36926 - Improve fallback logic in ParameterContentNegotiationStrategy and ParameterContentTypeResolver #36925
- Improve ambiguous match check on preflight request #36903
- Improve Groovy markup template loading #36902
- Improve request path handling on a Reactor Netty server #36893
- Improve JettyWebSocketSession error handling #36891
:lady_beetle: Bug Fixes
- EclipseLinkJpaDialect singleton lock in EclipseLinkConnectionHandle.getConnection() serializes all JDBC connection acquisitions under load #37085
- MetadataReader fails to read byte[] array from annotation #37083
- Ensure parsing/tostring symmetry in ContentDisposition #37064
- Character outside of permitted range in Content Disposition #37062
- Release Jackson BufferRecycler to its pool in encoders #37059
- Ensure consistent error escaping #37055
- Refine template name processing #37054
- Reset TwoByteMatcher partial match on mismatching byte #37053
- Refactor async XML parsing limit checks #37031
- Fix part constraint checks in PartEventHttpMessageReader #37028
- Fix buffer leak in RSocket SETUP frame handling #37026
- Ensure correct Jetty core response cookie handling #37025
- Align
domainToAsciiwith current WhatWG spec #37018 - Ensure consistent
ButtonTagvalue attribute processing #37017 - SpEL's
InlineListis cached as a mutable list in compiled mode #37001 - Write native configuration file when only lambda hints are present #36989
- SpEL
Indexerreuses invalid cachedPropertyAccessor#36986 - SpEL reuses invalid cached
ConstructorExecutor#36985 MimeTypeUtilsraisesStringIndexOutOfBoundsExceptionfor some invalid mime types #36971- Ignore DOCTYPE inside a multi-line comment body #36948
- Avoid divide-by-zero in
ExponentialBackOffjitter #36932 - Refactor use or close lock in ConcurrentWebSocketSessionDecorator #36909
- Host header initialization breaking change in StompRelayMessageBrokerHandler #36907
- Remote address checks for SockJS session #36681 breaks xhr-polling #36904
- LifeCyclePrintWriter does not delegate correctly #36885
- IllegalArgumentException when creating named native query via Shared EntityManager with Hibernate 8.0.0-SNAPSHOT / JPA 4.0.0-M4 #36878
:notebook_with_decorative_cover: Documentation
- Document AOP proxy semantics for Bean Overrides in tests #37121
- Provide guidance for object model design in SpEL #37102
- Fix Javadoc error in ProtobufDecoder #37079
- Document security implications of evaluating untrusted SpEL expressions #36997
- Document relationships between expressions, evaluation contexts, and accessors in SpEL #36968
- Update Javadoc for
@ActiveProfilesordering #36950 - Document behavior for 0 delay combined with jitter in backoff policies #36946
- Clarify design goal of UrlFilenameViewController in Javadoc #36906
:hammer: Dependency Upgrades
:heart: Contributors
Thank you to all the contributors who worked on this release:
@ZaMan0806, @alexisgra, @alshain, @gianmarcoschifone, @junhyeong9812, @msridhar, @perovic, @quaff, and @samueldlightfoot
v7.0.8
:warning: Security Fixes
This maintenance release fixes a high number of CVEs. You can learn more about this in the "Spring and Security In The Times Of AI" blog post. Here is the full list of 16 CVEs:
- CVE-2026-41838 "Spring Framework Predictable Session ID in WebSocket Module"
- CVE-2026-41839 "Spring Framework Escalation via Session Fixation in WebFlux"
- CVE-2026-41840 "Spring Framework Denial of Service via Multipart Requests in WebFlux"
- CVE-2026-41841 "Spring Framework Information Disclosure via Static Resource Cache in Spring MVC and WebFlux"
- CVE-2026-41842 "Spring Framework Denial of Service via Versioned Resources in Spring MVC and WebFlux"
- CVE-2026-41843 "Spring Framework Path Traversal via Versioned Static Resources in Spring MVC and WebFlux"
- CVE-2026-41844 "Spring Framework Open Redirect in Spring MVC and WebFlux"
- CVE-2026-41845 "Spring Framework Cross-site Scripting via JavaScriptUtils"
- CVE-2026-41846 "Spring Framework Cross-site Scripting via JSP Form Tags"
- CVE-2026-41848 "Spring Framework Denial of Service via AntPathMatcher"
- CVE-2026-41850 "Spring Framework Algorithmic Denial of Service via SpEL Expressions"
- CVE-2026-41851 "Spring Framework Denial of Service via Unbounded Cache in SpEL"
- CVE-2026-41852 "Spring Framework Arbitrary Method Invocation in SpEL Expressions"
- CVE-2026-41853 "Spring Framework Multipart Request Smuggling in Spring MVC and WebFlux"
- CVE-2026-41854 "Spring Framework Server-Side Request Forgery via UriComponentsBuilder"
- CVE-2026-41855 "Spring Framework Unsafe Deserialization via Jackson JMS Converters"
:star: New Features
- Include zone ID in CronTrigger's equals/hashCode implementations #36871
- Expose
ClassLoaderfromDefaultDeserializer#36833 - Use immutable map for SEPARATORS static field in DefaultPathContainer #36821
- Track operations during SpEL expression evaluation #36801
- Ensure getters have non-void return types in SpEL #36800
- Avoid too many character access attempts in
AntPathMatcher#36799 - Refine default view name resolution #36793
- Refine Jackson JMS converters #36791
- Improve ABNF rule checks in RfcUriParser #36787
- Restrict
SpringVersion.getVersion()to "major.minor.patch" format #36785 - Runtime compatibility with JPA 4.0 M4 and corresponding Hibernate 8.0 snapshots #36784
- Allow specifying the charset to use in
ExchangeFilterFunctions#basicAuthentication#36777 - Use CollectionUtils to initialize HashMap in DefaultUriBuilderFactory #36763
- Improve error messages in SpEL #36756
- Improve pattern caching in SpEL #36755
- Avoid ResolvableType#forType contention for implicit cache cleanup #36745
- Switch to JdkIdGenerator for WebSocket Sessions #36740
- Detect custom deserialized
NullValueinstances inAbstractValueAdaptingCache#36727 - LiteWebJarsResourceResolver does not resolve directories #36726
- Warn against unsafe static resource locations in MVC and WebFlux #36692
- Consistent compatibility with Woodstox as an alternative to Xerces #36682
- Improve principal checks for SockJS session #36681
- Set host header consistently in STOMP relay CONNECT frames #36673
- Support Micrometer context propagation in Kotlin
Flow#36667 - Reliable detection of broadcast messages in UserDestinationMessageHandler #36662
:lady_beetle: Bug Fixes
- Concurrency issue against shared cookie field in
CookieLocaleResolver#setLocaleContext#36869 - Server Sent Event does not support multi-line comments #36866
- CronExpression skips days on midnight DST gap #36865
- Regression in 6.2.0+:
ConfigurationClassParserincorrectly removes component-scanned bean when the same class is also registered under a different name via XML #36835 - Preserve generic type info in awaitEntity() #36834
- Bean Background Bootstrap and Lazy Init #36844
- Back-off for DefaultMessageListenerContainer with OracleAQ has changed and is very short in SpringBoot 4 #36809
- Character outside of permitted range in Content Disposition #36805
- Fix JSP tag processing #36797
- Fix script processing capabilities #36795
- Jaxb2XmlEncoder exclusivity prevents JacksonXmlEncoder usage and hinders POJO serialization #36776
- JacksonXmlEncoder.canEncode incorrectly returns true for String body with application/xml #36775
- Consistently expose map key quotes in
PropertyAccessorUtils#36765 - Fix fragment parsing for relative URI in RFC URI parser #36762
- Fix race condition in InMemoryWebSessionStore #36742
- Parsing failure for MIME type with quoted parameter values #36730
- Circular dependency between supplier-created beans is silently ignored on startup #36725
- Data is lost for joined DataBuffer in DataBufferUtils #36714
- Cache collisions in CachingResourceResolver #36713
- Unexpected path element removal when resolving versioned resources #36698
- Non-deterministic "Body token not expected" in org.springframework.http.codec.multipart.PartGenerator #36694
- Regression on value class parameter handling #36665
- Fix inverted logic for boolean last flag in JettyWebSocketSession when sending binary message #36650
- Parent traceId is not reused when calling WebClient.awaitExchange function #36182
:notebook_with_decorative_cover: Documentation
- Fix broken links to Selenium documentation #36875
- Fix applicability note on setAutoGrowCollectionLimit #36863
- Document
@Conditionalgating of nested@Configurationclasses #36831 - Javadoc of nestingLevel parameter in MethodParameter constructor is inconsistent with actual implementation #36826
- Re-structuring of Data Binding Content in Web Sections of Documentation #36803
- Fix typos for
validateExistingTransaction#36767
:hammer: Dependency Upgrades
:heart: Contributors
Thank you to all the contributors who worked on this release:
@0AndWild, @Dennis-Mircea, @cookie-meringue, @daguimu, @dmitrysulman, @kilink, @kzander91, @leestana01, @mguiking, @quaff, @seonwooj0810, @sgerke-1L, @shenjianeng, @tianhaocui, @wushiyuanmaimob, and @zmovo
v7.0.7
:star: New Features
- Improve
SpringValidatorAdapterandMethodValidationAdapterperformance #36621 - Support JSON array decoding to
FluxinKotlinSerializationJsonDecoder#36597 - Deprecate
methodIdentification()inCacheAspectSupportfor removal #36575 - Add MockRestServiceServer#createServer variant for RestClient #36572
- Create RestClientXhrTransport variant replacing RestTemplateXhrTransport #36566
- Improve error handling in multipart codecs #36563
- Make
ApplicationListenerMethodAdapter#getTargetMethod()public #36558 - ApiVersionConfigurer.setSupportedVersionPredicate() returns void instead of ApiVersionConfigurer #36551
- LazyConnectionDataSourceProxy does not work well with Hibernate's multi-tenancy by schema strategy #36527
- Add registerManagedResource variant with bean key argument to MBeanExporter #36520
- Handle blank Accept-Language header in AcceptHeaderLocaleResolver #36513
- Make AbstractStreamingClientHttpRequest and AbstractBufferingClientHttpRequest public #36501
- MySQL Error 149 (Galera/WSREP conflict) not translated to ConcurrencyFailureException in Spring JDBC/ORM #36499
- Add PreFlightRequestFilter #36482
- Support configuration of extension context scope for
SpringExtensionvia Spring or JUnit properties #36460 - Lower log level of "Cache miss for REQUEST dispatch" in HandlerMappingIntrospector #36309
:lady_beetle: Bug Fixes
- WebDataBinder unnecessarily instantiates collections when using the "!" and "_" prefixes #36625
- Cache pollution from high-cardinality FieldError default messages in MessageSourceSupport #36609
MergedAnnotationdoes not useClassLoaderfor method or field #36606@Sqlfails ifDataSourceis wrapped in aTransactionAwareDataSourceProxy#36611AnnotatedTypeMetadatano longer retains source declaration order on Java 24+ #36598MergedAnnotation.asMap()fails when an attribute references a non-existent class #36586FileSystemResourcedoes not strictly follow theResource#isReadable()contract #36584- Converter overrides in HttpMessageConverters only apply when defaults are registered #36579
- Invalid method return type metadata for ClassFile variant on JDK 24+ #36577
- Fix Writer lifecycle for
AbstractJsonHttpMessageConverter.writeInternal(Object, Type, Writer)#36565 - Flushing-related regression in
SseServerResponse#36537 - LazyConnectionDataSourceProxy does not pass on holdability to target Connection #36528
AnnotationBeanNameGeneratorfails when an annotation references a non-existent class #36524- Perserve default API version in RestClientAdapter #36514
- Inconsistent codings resolution in resource resolvers #36507
DefaultJmsListenerContainermay hang in an endless loop indoShutdown#36506- Query not hidden in DefaultClientResponse checkpoint #36502
- RestClient closes stream for ResponseEntity responses #36492
- IllegalStateException when using websocket handshake headers with Tomcat #36486
- Invalid nullness information for ParameterizedTypeReference #36477
- WebTestClient cannot assert null list elements #36476
- Handle Kotlin nullable value class param correctly in
CoroutineUtils#36449 - Remove RFC 2047 encoding from Content-Disposition filename #36328
:notebook_with_decorative_cover: Documentation
- Clarify semantics of HttpMethod.valueOf() #36652
- Document whitespace semantics in SpEL expressions #36628
- Document that
spring.profiles.activeis ignored by@ActiveProfiles#36600 MergedAnnotation.asAnnotationAttributes()Javadoc incorrectly states that it creates an immutable map #36567- Fix incorrect Javadoc in HandlerMethodReturnValueHandlerComposite regarding caching #36555
- Fix incorrect method name in
TypeDescriptor.array()Javadoc #36549 - Introduce Kotlin examples for Bean Overrides (
@MockitoBean, etc.) #36541 - Fix incorrect cross-reference links in AbstractEnvironment Javadoc #36516
- Document RetryTemplate#invoke variants in reference manual #36452
- Link observability section to Micrometer Observation Handler docs #34994
:hammer: Dependency Upgrades
:heart: Contributors
Thank you to all the contributors who worked on this release:
@Mohak-Nagaraju, @Sineaggi, @T45K, @angry-2k, @bebeis, @cookie-meringue, @dmitrysulman, @elgunshukurov, @itsmevichu, @junhyung8795, @msridhar, @nameearly, @tobifasc, and @xxxxxxjun
v7.0.6
:warning: Attention Required
- Log warning when default context configuration is ignored within test class hierarchies #36390
- Ignore flush calls on ServletServerHttpResponse body outputstream #36385
:star: New Features
- Leverage
ResourceHandlerUtilsinScriptTemplateView#36458 - Restore
ScriptTemplateViewTests#36456 - Fix log message in
ConfigurationClassBeanDefinitionReader#36453 - DefaultResponseErrorHandler - setMessageConverters() not called via RestClient #36434
- Resolve context initializers only once in
AbstractTestContextBootstrapper#36430 - Invoke
resolveContextLoader()only once inAbstractTestContextBootstrapper#36425 - Further align synthesized annotation
toString()with modern JDKs #36417 - Introduce
setDefaultCharset()inAbstractResourceBasedMessageSource#36413 - Support for JPA 4.0 flush mode "explicit" #36401
- Support application-wide defaultHtmlEscape setting in WebFlux RequestContext #36400
- Support
Predicate<RequestPath>>in path API version resolver #36398 - Avoid duplicate flushes in HttpMessageConverter implementations #36383
- Add support for non-flushing OutputStream to StreamUtils #36382
- Make it easier to get InputStream from RestClient #36380
- RuntimeHintsWriter should comply with reachability-metadata-schema-v1.2.0.json #36379
- Make it easier to create custom HttpExchangeAdapter #36374
- Improve ResourceHttpMessageConverter target type support #36368
- org.springframework.test.web.servlet.assertj.AbstractHttpServletResponseAssert#headers case sensitivity #36349
- Allow registering serialized lambda metadata through RuntimeHints #36339
- Refactor calculateHashCode in RequestMappingInfo #36325
:lady_beetle: Bug Fixes
- MetadataReader misses enclosing class name for Kotlin nested classes with Java 24+ #36451
- Guard against invalid id/event values in Server Sent Events #36440
- Component scanning fails against non-loadable annotation type with enum array on Java 25 #36432
- Duplicate ServletServerHttpRequest headers #36418
- Incomplete debug message in ConfigurationClassBeanDefinitionReader #36410
- Inconsistent ApplicationEventMulticaster state after removing ApplicationListener implemented by FactoryBean #36404
- Propagate max frame length to WebSocket session #36370
- Graceful shutdown of SimpleAsyncTaskExecutor #36362
- Duplicate response headers with
ResponseEntity<Mono<T>>(or Kotlin suspend function) controller method #36357 - HttpServiceProxyFactory returns LinkedHashMap instead of target type for method with generic return type #36326
- HttpMediaTypeException thrown when calculating compatible media types #36300
:notebook_with_decorative_cover: Documentation
- Document
FullyQualifiedConfigurationBeanNameGeneratorin Javadoc and reference docs #36455 - Document
@FallbackalongsidePrimaryin the reference manual and@BeanJavadoc #36439 - Fix links to
UriComponentsBuilderand polish examples #36403 - Emphasize
@Configurationclasses over XML and Groovy in testing chapter #36393 - Document tips to avoid issues with ignored default context configuration in tests #36392
- Polish SpEL operator examples in reference docs #36367
- Add programmatic configuration tabs in the transactional refdoc #36323
- Document registration recommendations for
BeanPostProcessorandBeanFactoryPostProcessor#34964
:hammer: Dependency Upgrades
- Upgrade to JUnit 6.0.3 #36389
- Upgrade to Micrometer 1.16.4 #36444
- Upgrade to Reactor 2025.0.4 #36443
:heart: Contributors
Thank you to all the contributors who worked on this release:
@AgilAghamirzayev, @aavoronin93, @cetf9h, @froggy0m0, @gbouwen, @husseinvr97, @jisub-dev, @ngocnhan-tran1996, @siom79, and @xxxxxxjun
v7.0.5
:warning: Attention Required
- Optimize request and response header handling in Spring MVC #36334
:star: New Features
- Consistent adaptation of HTTP headers on Servlet responses #36343
- Copy methodAnnotations in MethodParameter copy constructor #36342
- Improve performance of validation groups determination in WebFlux #36336
- Reuse
AnnotatedMethodannotation cache in derived instances #36322 - Optimize the addition of a charset to the MediaType in AbstractHttpMessageConverter #36320
- Optimize
MediaType(MediaType, Charset)constructor #36318 - Detect all common size exceptions from Tomcat and Commons FileUpload 2.x #36317
- Consistently support
@Autowiredas a meta-annotation #36315 - Avoid duplicate
requiredattribute lookup for@Autowiredannotations #36314 - Cache
@ResponseBodypresence per controller class inRequestResponseBodyMethodProcessor#36311
:lady_beetle: Bug Fixes
- ResolvableType#getGenerics() breaks serialization #36346
- DefaultHttpMessageConverters not adding provided configurer #36332
- Restore early MessageConsumer creation for temporary queue #36321
- Multipart upload leak on client abort (ByteBuf.release() not called) #36262
:notebook_with_decorative_cover: Documentation
- Document that SpEL expressions using
Optionalwith null-safe and Elvis operators are not compilable #36331 - Improve documentation of baseline API version to emphasize version must be supported #36316
- Stop referring to obsolete
ListenableFuturein documentation #36313 - Stop referring to standard Java features as "Java 8" features in documentation #36310
:heart: Contributors
Thank you to all the contributors who worked on this release:
@Niravil and @TAKETODAY