The vulnerability CVE-2026-41004 in Spring Cloud Config Server was caused by the logging of sensitive information in plain text when trace logging was enabled. An analysis of the commits between the vulnerable version 5.0.2 and the patched version 5.0.3 revealed a commit fb54c48b5ad86269ff21812b0b9491794339b24d with the message "Remove unnecessary logging". This commit modifies the AwsCodeCommitCredentialProvider.java file to remove the logging of AWS credentials. Specifically, the get method in this class was logging the awsAccessKey and codeCommitPassword. The patch replaces these log statements with generic messages that do not contain sensitive information. Therefore, the vulnerable function is org.springframework.cloud.config.server.support.AwsCodeCommitCredentialProvider.get.