Critical Vulnerability in libspring-java: EndpointRequest.to() Null Path Exposure

libspring-java Updated 03 Oct 2025

Summary

28/04/2025
N/A
No i
High
7.3

UBUNTU-CVE-2025-22235: EndpointRequest.to() creates a matcher for null/** if the actuator endpoint, for which the EndpointRequest has been created, is disabled or not exposed. Affects libspring-java versions 3.0.6.RELEASE-10 – 3.0.6.RELEASE-9. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libspring-java is a core library in the Spring Framework, widely used for building Java applications. It provides essential features such as dependency injection, aspect-oriented programming, and transaction management. The library is integral for developers seeking to create robust and scalable applications. However, it is susceptible to a specific vulnerability that can compromise application security if not addressed.

Vulnerability Detail

The vulnerability arises from the EndpointRequest.to() method, which creates a matcher for null/** if the actuator endpoint is disabled or not exposed. This can lead to unauthorized access if the application handles requests to /null and requires protection. The conditions for exploitation include using Spring Security, having EndpointRequest.to() in the security chain, and the referenced endpoint being disabled or not exposed. The CVSS score for this vulnerability is 7.3, indicating a medium severity level.

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

As a temporary workaround, avoid using EndpointRequest.to() for endpoints that are disabled or not exposed. Additionally, ensure that your application does not handle requests to /null or that such paths are adequately protected.

Conclusion

The vulnerability in libspring-java related to EndpointRequest.to() poses a significant risk to applications using this library. It is crucial for developers to update to the patched version and implement workarounds to safeguard their applications. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

The vulnerability allows unauthorized access to endpoints if the application is not properly configured, particularly when using EndpointRequest.to() with disabled or unexposed endpoints.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If exploited, this vulnerability can lead to unauthorized access to sensitive endpoints, potentially compromising application security and data integrity.

Yes, a patched version of the libspring-java package is available. It is recommended to update to this version to mitigate the risk.

If an immediate update is not possible, implement the suggested workarounds to limit exposure and protect sensitive endpoints.

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