CVE-2018-1259: Spring Data Commons XML External Entity Reference Restriction Bypass

Summary

17/10/2018
Yes i
High
7.5

CVE-2018-1259: Spring Data Commons, versions 1.13 prior to 1.13.12 and 2.0 prior to 2.0.7, used in combination with XMLBeam 1.4.14 or earlier versions, contains a property binder vulnerability caused by improper restriction of XML exte... Affects org.springframework.data:spring-data-commons across 2 version ranges.

>= 1.13.0, < 1.13.12 >= 2.0.0, < 2.0.7

Fixed in 1.13.12 or 2.0.7, depending on the release line you run. 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

Spring Data Commons is a library that provides a set of utilities and abstractions for working with data repositories in Spring applications. It is commonly used in combination with XMLBeam, a library for XML data binding. This vulnerability affects versions 1.13 prior to 1.13.12 and 2.0 prior to 2.0.7 of Spring Data Commons when used with XMLBeam 1.4.14 or earlier versions.

Vulnerability Detail

The vulnerability arises from the improper restriction of XML external entity references in Spring Data Commons. The underlying library, XMLBeam, does not properly restrict the expansion of external references. This allows an unauthenticated remote attacker to exploit the vulnerability by supplying specially crafted request parameters to Spring Data's projection-based request payload binding. By doing so, the attacker can gain unauthorized access to arbitrary files on the system. This can lead to sensitive information disclosure or even remote code execution.

How To Fix

Latest published version: 4.2.0-RC1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 1.13.0, < 1.13.12 1.13.12
  • >= 2.0.0, < 2.0.7 2.0.7

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to the fixed versions is not immediately feasible, a possible workaround is to disable XML external entity expansion in the application's XML parser configuration. This can be achieved by setting the appropriate properties or features in the XML parser implementation being used. Consult the documentation of the XML parser library for guidance on how to disable external entity expansion.

Conclusion

The vulnerability in Spring Data Commons and XMLBeam allows an unauthenticated remote attacker to bypass XML external entity reference restrictions and access arbitrary files on the system. It is crucial to upgrade to the fixed versions of the affected libraries to mitigate this vulnerability. If immediate upgrade is not possible, disabling XML external entity expansion in the XML parser configuration can serve as a temporary workaround. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.springframework.data:spring-data-commons →

Share this vulnerability

FAQ

Spring Data Commons is a library that provides utilities and abstractions for working with data repositories in Spring applications. It simplifies the implementation of data access layers and provides consistent APIs for interacting with different data sources.

XMLBeam is a library for XML data binding. It allows developers to map XML data to Java objects and provides convenient methods for querying and manipulating XML documents.

The vulnerability allows an attacker to access arbitrary files on the system by exploiting the XML external entity reference restriction bypass. This can lead to unauthorized disclosure of sensitive information or even remote code execution, depending on the specific circumstances.

No, only versions 1.13 prior to 1.13.12 and 2.0 prior to 2.0.7 are affected. If you are using a different version, you are not vulnerable to this specific issue.

Yes, the CVSS score for this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for org.springframework.data:spring-data-commons.

How To Fix

Latest published version: 4.2.0-RC1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 1.13.0, < 1.13.12 1.13.12
  • >= 2.0.0, < 2.0.7 2.0.7

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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