Open Redirect and SSRF Vulnerability in libspring-java

libspring-java Updated 02 Oct 2025

Summary

23/02/2024
N/A
No i
Unrated
Not published

CVE-2024-22243: Applications that use UriComponentsBuilder to parse an externally provided URL (e.g. Affects libspring-java versions 4.3.30-1 – 4.3.30-3. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libspring-java is a Java library used for building and deploying Spring Framework applications. It provides various utilities and components for developing robust and scalable Java applications. However, the library is vulnerable to an open redirect and server-side request forgery (SSRF) attack when using UriComponentsBuilder to parse an externally provided URL and perform validation checks on the host of the parsed URL.

Vulnerability Detail

The vulnerability arises when applications using libspring-java parse a URL provided externally, such as through a query parameter, and subsequently validate the host of the parsed URL. In such cases, an attacker can exploit the open redirect vulnerability to redirect users to malicious websites, potentially leading to phishing attacks or the disclosure of sensitive information. Additionally, if the URL passes the validation checks, it can be used in a server-side request forgery (SSRF) attack, allowing an attacker to make arbitrary requests to internal resources.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If upgrading to a patched version of libspring-java is not immediately feasible, a possible workaround is to implement additional validation checks on the parsed URL to ensure it does not redirect to external domains or access sensitive internal resources. This can be done by examining the URL's scheme, host, and path to ensure they conform to the expected values.

Conclusion

The open redirect and SSRF vulnerability in libspring-java can pose significant risks to applications that parse externally provided URLs using UriComponentsBuilder. It is crucial to update to a patched version of libspring-java or implement additional validation checks to mitigate the risk of open redirect and SSRF attacks. For further assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

An open redirect vulnerability allows an attacker to redirect users from a trusted website to a malicious one. This can be exploited for phishing attacks or to trick users into visiting harmful websites.

Server-side request forgery (SSRF) is a vulnerability that allows an attacker to make arbitrary requests from the server to internal resources. This can lead to unauthorized access to sensitive information or services.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will analyze it for open-source vulnerabilities, including this one.

Yes, the maintainers of libspring-java have released patched versions that address this vulnerability. It is recommended to upgrade to the latest version of the library to mitigate the risk.

At the time of this report, there are no known public exploits targeting this specific vulnerability. However, it is crucial to address the vulnerability promptly to prevent potential attacks.

Related vulnerabilities

Recent vulnerabilities recorded for libspring-java.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback