CVE-2026-49875: Apache CXF cxf-core XML External Entity Reference Vulnerability

org.apache.cxf:cxf-core Updated 03 Oct 2026

Summary

12/06/2026
Yes i
Critical
9.8

CVE-2026-49875: Apache CXF has Improper Restriction of XML External Entity Reference. Affects org.apache.cxf:cxf-core across 2 version ranges.

< 4.1.7 >= 4.2.0, < 4.2.2

Fixed in 4.1.7 or 4.2.2, 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache CXF is an open-source services framework that helps in the development of web services. It provides a robust and flexible architecture for building and deploying web services, supporting various protocols and data formats. The cxf-core package is central to its functionality, enabling developers to create and manage web service endpoints. However, a critical vulnerability has been identified in this package, which can lead to serious security risks if not addressed promptly.

Vulnerability Detail

The vulnerability in Apache CXF arises from the improper restriction of XML External Entity (XXE) references in the EndpointReferenceUtils and W3CMultiSchemaFactory classes. These classes create a SAXParserFactory without the necessary JAXP hardening configurations, allowing for out-of-band (OOB) external entity resolution. This can lead to sensitive data exposure, denial of service, and other malicious attacks. The vulnerability has been assigned a CVSS score of 9.8, indicating its critical severity and potential impact on affected systems.

How To Fix

Fixed versions by release line

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

  • < 4.1.7 4.1.7
  • >= 4.2.0, < 4.2.2 4.2.2

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

Workaround

If immediate upgrading is not feasible, consider implementing XML parsing configurations that disable external entity processing. This can be done by configuring the SAXParserFactory as follows:

System.setProperty("javax.xml.XMLParserFactory", "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl");
System.setProperty("javax.xml.accessExternalDTD", "all");
System.setProperty("javax.xml.accessExternalSchema", "all");

Conclusion

The CVE-2026-49875 vulnerability in Apache CXF's cxf-core package poses a significant security risk due to improper handling of XML External Entity references. It is crucial for users to upgrade to the patched versions 4.2.2 or 4.1.7 to mitigate this risk. Implementing workarounds can provide temporary relief, but upgrading is the recommended solution.

See every vulnerability recorded for org.apache.cxf:cxf-core →

Share this vulnerability

FAQ

CVE-2026-49875 is a critical vulnerability in the Apache CXF cxf-core package that allows improper handling of XML External Entity references.

Exploitation of this vulnerability can lead to sensitive data exposure, denial of service, and other malicious attacks on the system.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.

Implement XML parsing configurations to disable external entity processing as a temporary workaround until you can upgrade.

The CVSS score for CVE-2026-49875 is 9.8, indicating a critical level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.cxf:cxf-core.

How To Fix

Fixed versions by release line

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

  • < 4.1.7 4.1.7
  • >= 4.2.0, < 4.2.2 4.2.2

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