Cross-Domain Request Vulnerability in libspring-java Package - CVE-2018-11040

libspring-java Updated 03 Oct 2025

Summary

25/06/2018
N/A
No i
High
7.5

UBUNTU-CVE-2018-11040: Spring Framework, versions 5.0.x prior to 5.0.7 and 4.3.x prior to 4.3.18 and older unsupported versions, allows web applications to enable cross-domain requests via JSONP (JSON with Padding) through AbstractJsonpRespons... 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 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

The libspring-java package is part of the Spring Framework, a widely-used framework for building Java applications. It provides comprehensive infrastructure support for developing Java applications, including web applications. The framework is known for its modular architecture and ease of integration with various technologies. However, certain versions of this package are vulnerable to a security issue that allows cross-domain requests via JSONP, which can lead to unauthorized data access.

Vulnerability Detail

The vulnerability identified as CVE-2018-11040 affects Spring Framework versions 5.0.x prior to 5.0.7 and 4.3.x prior to 4.3.18. It allows web applications to enable cross-domain requests through JSONP (JSON with Padding) when certain components are configured. This can lead to unauthorized access to sensitive data, as attackers can exploit this feature to make requests to different domains, potentially exposing user data or application logic. The vulnerability is not enabled by default, but if the MappingJackson2JsonView is configured, JSONP support becomes available, increasing the risk of exploitation.

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 immediate patching is not possible, consider disabling JSONP support in your application configuration or avoid using MappingJackson2JsonView until the package is updated.

Conclusion

The CVE-2018-11040 vulnerability in the libspring-java package poses a significant risk by allowing cross-domain requests through JSONP. It is crucial to update to the latest patched versions to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

CVE-2018-11040 is a vulnerability in the Spring Framework that allows cross-domain requests via JSONP, potentially leading to unauthorized data access.

Versions 5.0.x prior to 5.0.7 and 4.3.x prior to 4.3.18 of the Spring Framework are affected by this vulnerability.

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

JSONP (JSON with Padding) is a method used to request data from a server in a different domain. It can be a concern because it may allow attackers to make unauthorized requests and access sensitive data.

If you cannot update the package, consider disabling JSONP support in your application or avoid using the MappingJackson2JsonView until a patch is applied.

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