Improper Certificate Validation Affecting org.springframework.cloud:spring-cloud-config-server package, versions [3.1.0,5.0.7)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKCLOUD-22732861
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditUnknown

Introduced: 19 Nov 2026

NewCVE-2026-59437  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade org.springframework.cloud:spring-cloud-config-server to version 5.0.7 or higher.

Overview

org.springframework.cloud:spring-cloud-config-server is a library that provides an HTTP resource-based API for external configuration.

Affected versions of this package are vulnerable to Improper Certificate Validation in its property-based Git SSH handling, where setting ignoreLocalSshSettings=true with no hostKey configured disables strict host-key checking even though strictHostKeyChecking defaults to true. The server then accepts any SSH host key and never consults the configured knownHostsFile, so an attacker in a MitM position can impersonate the Git backend. This affects deployments that use a Git backend over SSH in property-based SSH mode without an explicit hostKey.

Workaround

This vulnerability can be avoided by setting the spring.cloud.config.server.git.hostKey property together with spring.cloud.config.server.git.hostKeyAlgorithm for every Git repository that uses property-based SSH settings, pinning the server key explicitly.

CVSS Base Scores

version 4.0
version 3.1