org.springframework.cloud:spring-cloud-gateway-server-webflux@4.3.0

  • latest version

    5.0.4

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.springframework.cloud:spring-cloud-gateway-server-webflux package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Origin Validation Error

    Affected versions of this package are vulnerable to Origin Validation Error in the WebsocketRoutingFilter class, which accepts WebSocket handshakes without checking the Origin header. Because browsers do not apply the same-origin policy to WebSocket handshakes and only send the Origin header, a malicious page can drive a victim's browser to open a WebSocket connection through the gateway to a backend service using the cookies the browser attaches automatically. This affects applications only if they expose a route with a ws or wss URI through the gateway.

    How to fix Origin Validation Error?

    Upgrade org.springframework.cloud:spring-cloud-gateway-server-webflux to version 5.0.5 or higher.

    [,5.0.5)
    • H
    Use of Cache Containing Sensitive Information

    Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information in the CacheKeyGenerator class, which builds the global LocalResponseCache key from the request URI, Authorization header, cookies, and Vary headers but not the matched route. When several routes share a request URI but are selected by different predicates and forward to different upstreams, a response cached for one route is returned to a caller that matches only another. This affects applications that enable the global LocalResponseCache and define multiple routes distinguished by predicate rather than URI.

    How to fix Use of Cache Containing Sensitive Information?

    Upgrade org.springframework.cloud:spring-cloud-gateway-server-webflux to version 5.0.5 or higher.

    [,5.0.5)
    • H
    Missing Release of Resource after Effective Lifetime

    Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime in the JsonToGrpcGatewayFilterFactory class, which creates a new Netty-backed gRPC ManagedChannel for every request matching a route that uses the filter and never shuts it down or reuses it. An attacker who can reach such a route can send repeated requests to accumulate open sockets and channel resources until the gateway denies service. This affects applications only if they expose a route configured with the JsonToGrpc filter.

    How to fix Missing Release of Resource after Effective Lifetime?

    Upgrade org.springframework.cloud:spring-cloud-gateway-server-webflux to version 5.0.5 or higher.

    [,5.0.5)
    • H
    Use of Cache Containing Sensitive Information

    Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information in the ResponseCacheManager class, which decides cacheability by comparing the entire Cache-Control header value against the strings private and no-store instead of parsing the comma-separated directives. A combined value such as private, no-store or Spring Security's default no-cache, no-store, max-age=0, must-revalidate therefore fails to match, so the response is stored and later served to a different caller. This affects applications only where LocalResponseCache is enabled on a route that proxies responses marked private or no-store.

    How to fix Use of Cache Containing Sensitive Information?

    Upgrade org.springframework.cloud:spring-cloud-gateway-server-webflux to version 5.0.5 or higher.

    [,5.0.5)