Spring vulnerabilities

337 vulnerabilities

Known vulnerabilities in Spring products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 52 products.

Products

50 of 52
RoutineCVE-2026-59444spring · spring integrationSpring Integration Redis Queue Unsafe Java DeserializationSpring Integration Redis queue endpoints use unrestricted Java deserialization by default. RedisQueueMessageDrivenEndpoint and RedisQueueInboundGateway deserialize data read from Redis lists, while RedisQueueOutboundGateway deserializes replies, using JdkSerializationRedisSerializer unless an application configures another serializer. An attacker who can write crafted serialized data to a Redis list consumed by one of these endpoints can trigger deserialization of arbitrary classes. If a suitable gadget chain is present on the application's classpath, this can lead to remote code execution in the application process. Applications are affected when they use one of these Redis queue endpoints with its default serializer and allow an untrusted or compromised client to write to the relevant Redis list.CVSS7.5HighEPSS0.53%RoutineCVE-2026-59443spring · spring integrationSpring Integration FluxAggregatorMessageHandler unbounded memory consumption via the sequenceSize message headerBy default, the FluxAggregatorMessageHandler derives the window size for a correlation group from the sequenceSize message header and passes it to the Reactor Flux.window(int) operator without any validation. A remote sender whose messages reach a default-configured FluxAggregatorMessageHandler can set this header to a very large value, such as Integer.MAX_VALUE , which opens a window that never closes. All subsequent messages for that correlation key are then buffered in memory indefinitely, which leads to heap exhaustion and a denial of service for the whole application. A non-positive header value, or a message without a correlation key, also terminates the whole aggregating Flux , so the handler stops releasing any further groups. An application is affected if it uses the FluxAggregatorMessageHandler with the default window size (taken from the sequenceSize header) and the correlationId and sequenceSize headers can be set by untrusted message sources.CVSS6.5MediumEPSS0.62%RoutineCVE-2026-59441spring · spring cloud streamSubpackage Deserialization in Spring Cloud StreamTrusted-Package Prefix Match allows subpackage deserialization in Spring Cloud Stream's Kafka BinderCVSS3.1LowEPSS0.32%RoutineCVE-2026-59440spring · spring cloud functionPotential for arbitrary Class Loading in Spring Cloud FunctionAs a feature, Spring Cloud Function provides ability specify type via ‘type’ parameter of the content type. However it does not provide any guards against specifying system/platform classes.CVSS3.1LowEPSS0.32%RoutineCVE-2026-59439spring · spring cloud functionSpring Cloud Function allows unbounded JSON CollectionWhen an inbound Message payload is a JSON array, framework provides no control over its size. This could lead to OOM errors.CVSS3.1LowEPSS0.30%RoutineCVE-2026-59438spring · spring integrationSpring Integration MongoDbMessageStore allow-list API silently loses effect after startupMongoDbMessageStore exposes an addAllowedPatterns() API that restricts which classes may be deserialized from stored ErrorMessage payloads. Its Javadoc does not state that it must be called before the store is initialized. The allow-list is copied by value into the internal converter only once, when the store is initialized. If addAllowedPatterns() is called after initialization, the new patterns are never applied. Because an empty allow-list permits every class, the store continues to deserialize arbitrary classes while the application believes it is restricted. An attacker who can influence the serialized bytes stored in the backing MongoDB collection can cause an arbitrary Java class to be deserialized, which may lead to remote code execution through a gadget chain. Applications that configure the allow-list before the store is initialized are not affected.CVSS6.6MediumEPSS1.08%RoutineCVE-2026-59437spring · spring cloud configMan In The Middle Attack Possible When Using Git and SSH With Spring Cloud Config ServerWhen Spring Cloud Config Server uses property-based SSH settings ( spring.cloud.config.server.git.ignoreLocalSshSettings=true ) for a Git repository and no spring.cloud.config.server.git.hostKey is configured, it disables strict host key checking even if spring.cloud.config.server.git.strictHostKeyChecking is true , which is the default. The server then accepts any SSH server key and never consults the configured spring.cloud.config.server.git.knownHostsFile . Applications are affected when they use the Config Server with a Git backend over SSH in property-based SSH mode without an explicit hostKey .CVSS4.4MediumEPSS0.24%RoutineCVE-2026-59436spring · spring cloud configGit Repos Do Not Validate SSH Host Key When Using SSH In Spring Cloud Config ServerSpring Cloud Config Server can be configured to use property-based SSH settings for its Git repositories by setting spring.cloud.config.server.git.ignoreLocalSshSettings to true . The startup validators that check the host key and host key algorithm settings decide whether to run based on the top-level repository setting instead of the setting of the individual repository being validated. When the top-level repository keeps the default ( ignoreLocalSshSettings=false ) and a sub-repository sets ignoreLocalSshSettings=true with an incomplete or unsupported host key configuration (for example a hostKeyAlgorithm without a hostKey ), the configuration passes validation at startup. At runtime, no host key is available for that sub-repository, so strict host key checking is disabled and any SSH server key is accepted. Applications are affected when they use the Config Server with a Git backend over SSH and have a sub-repository configured this way.CVSS4.4MediumEPSS0.20%PrioritiseCVE-2026-59435spring · spring cloud configSpring Cloud Config Server Leaks Backend Git and SVN Credentials via Property Source NamesSpring Cloud Config Server includes the full URI of its backend repository in the name of every property source it returns. When the Git or SVN repository URI contains credentials in its userinfo section, those credentials are returned in clear text in the response body of every successful configuration request.CVSS7.5HighEPSS0.24%RoutineCVE-2026-59434spring · spring cloud kubernetesRemote Code Execution In Spring Cloud Kubernetes via ConfigMap/Secret YAMLSpring Cloud Kubernetes parses ConfigMap and Secret entries ending in .yaml with a SnakeYAML Yaml instance created without a SafeConstructor or any type restrictions. If the application's classpath contains a SnakeYAML version earlier than 2.0, an attacker with write access to a ConfigMap or Secret that the application reads can supply a YAML payload that instantiates arbitrary Java types.CVSS4.4MediumEPSS0.27%PrioritiseCVE-2026-59433spring · spring cloud netflixSpring Cloud Netflix Eureka Server Credential Leakage via DashboardThe Eureka Server dashboard in Spring Cloud Netflix renders the URLs of peer replicas in its HTML. Credentials embedded in peer service URLs can be exposed in the dashboard to anyone who can view it. Applications are affected when they run Eureka Server with the dashboard enabled (the default), have peer Eureka nodes configured with credentials embedded in their service URLs, and the dashboard is accessible without authentication.CVSS7.5HighEPSS0.42%RoutineCVE-2026-59432spring · spring for apache kafkaIn Spring for Apache Kafka, listener container denial of service via deeply nested or thread-creating array type headersWhen mapping inbound record headers, JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper (used by the default message converters) deserialize each header value into the type named for it in the producer-controlled spring_json_header_types header, provided that type's package is trusted. Because java.lang and java.util are trusted by default, a producer can declare a type with a very large number of array dimensions, such as java.lang.String followed by many [] suffixes, or an array of java.util.Timer . Resolving the deeply nested array type recurses once per dimension and overflows the stack of the consumer thread with a StackOverflowError . Deserializing a java.util.Timer array starts a new thread for each element, so a large array can exhaust the native threads of the application. In both cases, the error is not caught by the mapper, so the listener container stops before the record is committed, and stops again on the same record after a restart. A malicious producer can use a single record to repeatedly stop consumption. An application is affected if it consumes records from a topic that an attacker can produce to and maps headers with JsonKafkaHeaderMapper or DefaultKafkaHeaderMapper , which is the default for @KafkaListener methods and other listeners using the messaging message converters.CVSS6.5MediumEPSS0.71%RoutineCVE-2026-59431spring · spring framework +1 moreSpring Framework Denial of Service via SpEL Collection SelectionApplications which accept user-supplied Spring Expression Language (SpEL) expressions may be vulnerable to a Denial of Service (DoS) attack. Specifically, an application is vulnerable when the following condition is met: The application accepts and evaluates untrusted or user-controlled SpEL expressions. When this condition is met, an attacker can supply an expression that uses the collection selection operator to perform significantly more work than permitted by the maximum operations limit introduced for CVE-2026-41850 , which can lead to excessive CPU consumption.CVSS5.3MediumEPSS0.65%RoutineCVE-2026-59430spring · spring framework +1 moreSpring Framework Unintended Constructor and Method Invocation via Type Conversion in SpELApplications which accept user-supplied Spring Expression Language (SpEL) expressions and evaluate them with a SimpleEvaluationContext may be vulnerable to the invocation of constructors or methods through implicit type conversion, bypassing the restrictions on constructor and method invocations. Specifically, an application is vulnerable when all the following conditions are met: The application accepts and evaluates untrusted or user-controlled SpEL expressions using SimpleEvaluationContext . The SimpleEvaluationContext uses its default type converter, or it is configured with a TypeConverter or ConversionService that includes the default converters of DefaultConversionService — for example, a DefaultConversionService or a ConversionService populated via DefaultConversionService.addDefaultConverters() .CVSS5.6MediumEPSS0.49%RoutineCVE-2026-59429spring · spring framework +1 moreSpring Framework Denial of Service via PathPatternApplications may be vulnerable to a Regular Expression Denial of Service (ReDoS) attack if they use PathPattern with a pattern that contains a {name:regex} variable, and that regular expression is prone to excessive backtracking. This applies to request mappings in Spring MVC and Spring WebFlux applications, as well as PathPatternParser being used directly by applications. When those conditions are met, an attacker can send crafted request paths that consume excessive CPU time during request matching.CVSS3.7LowEPSS0.59%RoutineCVE-2026-59428spring · spring cloud gatewaySpring Cloud Gateway WebSocket Routing Filter Does Not Enforce Same-Origin by DefaultSpring Cloud Gateway's WebsocketRoutingFilter accepts WebSocket handshakes without checking the Origin header. Browsers do not apply the same-origin policy or CORS to WebSocket handshakes. They only send the Origin header and rely on the server to accept or reject the request. Because the gateway does not reject cross-origin handshakes by default, a malicious web page can cause a victim's browser to open a WebSocket connection through the gateway to a backend service, using any credentials the browser attaches automatically, such as cookies. Applications are affected only if they expose a route with a ws or wss URI through the gateway. Spring Cloud Gateway now rejects cross-origin WebSocket handshakes by default with a 403 Forbidden response, and provides the spring.cloud.gateway.server.webflux.websocket.allowed-origins and spring.cloud.gateway.server.webflux.websocket.allowed-origin-patterns properties ( spring.cloud.gateway.websocket.* for the 4.x and 3.1.x lines) to allow specific origins.CVSS5.9MediumEPSS0.38%PrioritiseCVE-2026-59427spring · spring cloud gatewaySpring Cloud Gateway LocalResponseCache Stores private and no-store Responses, Leaking Authenticated ContentSpring Cloud Gateway's LocalResponseCache decides whether an upstream response may be stored by comparing each complete Cache-Control header value with the strings private and no-store , instead of parsing the comma-separated directives. A protected upstream response with a combined value, such as private, no-store or the Spring Security default no-cache, no-store, max-age=0, must-revalidate , is therefore stored in the route cache even though the upstream prohibited it. A later request can then be served that cached response without reaching the upstream, so an unauthenticated attacker can read content that was meant for an authenticated user. Applications are affected only if LocalResponseCache is enabled on a route that forwards to an upstream that returns user-specific or otherwise private responses with a Cache-Control header containing more than one directive, and the upstream does not distinguish callers with a Vary header.CVSS7.5HighEPSS0.33%PrioritiseCVE-2026-59426spring · spring cloud gatewaySpring Cloud Gateway Global LocalResponseCache Leaks Responses Across RoutesSpring Cloud Gateway's global LocalResponseCache filter uses a single cache shared by every route that does not configure the route-level LocalResponseCache filter. The cache key is built from the request URI, the Authorization header, the request cookies, and any request headers named in the response's Vary header. The route that handled the request is not part of the key. When routes match the same request URI but are selected by different predicates (for example RemoteAddr , Host , Header , Cookie , Query , or custom predicates) and forward to different upstreams, a response cached for one route can be returned to a caller that matches only another route. For example, a response cached for a restricted route can be served to a caller that matches only a public route, without that request reaching either upstream. An unauthenticated attacker can exploit this to read responses that were meant for a different audience. Applications are affected only if the global LocalResponseCache is enabled and at least two routes that use it match the same request URI but are separated by predicates that do not influence the cache key. Routes that configure the route-level LocalResponseCache filter use their own per-route cache and are not affected.CVSS7.5HighEPSS0.33%PrioritiseCVE-2026-59425spring · spring cloud gatewaySpring Cloud Gateway JsonToGrpc Filter Leaks gRPC ManagedChannel ResourcesSpring Cloud Gateway's JsonToGrpc filter creates a new Netty-backed gRPC ManagedChannel for every HTTP request that matches a route using the filter. The channel is never shut down or reused, so its socket and channel resources remain open after the request completes. An unauthenticated attacker who can reach a route that uses the JsonToGrpc filter can send repeated requests and cause the gateway to retain open sockets and channel resources, resulting in a denial of service. Applications are affected only if they expose a route configured with the JsonToGrpc filter.CVSS7.5HighEPSS0.36%RoutineCVE-2026-59419spring · spring framework +1 moreSpring Framework Denial of Service with HTTP client observationsSpring applications that send HTTP client requests with an HTTP method derived from untrusted input may be vulnerable to a denial of service attack. Specifically, an application is vulnerable when all the following conditions are met: The application is using RestClient , RestTemplate or WebClient with an ObservationRegistry configured and Micrometer metrics enabled The application uses the default ClientRequestObservationConvention The application sends HTTP client requests with an HTTP method chosen by a remote user, for example by forwarding the method of an incoming request to a downstream service The configured ClientHttpRequestFactory or ClientHttpConnector accepts non-standard HTTP methods When all conditions are met, an attacker can send many requests with distinct HTTP methods that each create a new http.client.requests metric, eventually exhausting the application memory.CVSS5.9MediumEPSS0.65%