# CVE-2026-49875: Apache CXF XXE injection in EndpointReferenceUtils and W3CMultiSchemaFactory

Source: https://junglewise.ai/threats/cve-2026-49875-apache-cxf-xxe-injection-in-endpointreferenceutils-and  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-12. Updated: 2026-06-12  
License: CC BY 4.0 with a link back

CVE-2026-49875 · Severity: critical · CVSS 9.8 · Published 2026-06-12

Apache CXF, a framework used to build and develop web services, contains a vulnerability in how it processes XML data. An attacker could exploit this to read sensitive files from the server or perform unauthorized network requests. Organizations using affected versions should update to the latest patched releases to prevent potential data exposure.

Technologies: [Apache Software Foundation CXF](https://junglewise.ai/threats/technologies/cxf), [org.apache.cxf:cxf-core (Maven)](https://junglewise.ai/threats/technologies/org-apache-cxf-cxf-core). Vendors: [Apache Software Foundation](https://junglewise.ai/threats/vendors/apache-software-foundation), [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2026-49875 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-49875 being exploited in the wild.

**How severe is CVE-2026-49875?** Critical severity, with a CVSS score of 9.8, published 12 June 2026.

**Which products and versions are affected?** Apache Software Foundation CXF 4.2.0 to 4.2.1, all versions before 4.1.7; org.apache.cxf:cxf-core (Maven) ECOSYSTEM:introduced=4.2.0,fixed=4.2.2.

**Is there a fix for CVE-2026-49875?** Yes. org.apache.cxf:cxf-core (Maven): upgrade to 4.2.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-49875 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-49875?** Check whether you run Apache Software Foundation CXF or org.apache.cxf:cxf-core (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.cxf:cxf-core (Maven): upgrade to 4.2.2 or later

  ```sh
  # set org.apache.cxf:cxf-core to 4.2.2 in your pom.xml or build.gradle
  ```


## Technical details

An XML External Entity (XXE) vulnerability exists in Apache CXF's cxf-core module. The EndpointReferenceUtils and W3CMultiSchemaFactory classes instantiate a SAXParserFactory without disabling external entity resolution (JAXP hardening). A remote, unauthenticated attacker can exploit this by sending specially crafted XML messages to a CXF-based endpoint, leading to out-of-band (OOB) external entity resolution. This can result in the disclosure of local files or server-side request forgery (SSRF). The issue is resolved in Apache CXF versions 4.2.2 and 4.1.7.

## Affected products

- Apache CXF (cxf-core) 4.2.0 to 4.2.1, all versions before 4.1.7

## Identifiers

- CVE-2026-49875
- GHSA-xw5h-cmh3-8j6j

## Timeline

- 2026-06-11: disclosed: Initial disclosure on oss-security mailing list
- 2026-06-12: advisory: NVD publication date
- 2026-06-12: patched: Fixes available in versions 4.2.2 and 4.1.7

## References

- [https://lists.apache.org/thread/3kb9w5bg90xcp06fccoz9k3gpsvyy79o](https://lists.apache.org/thread/3kb9w5bg90xcp06fccoz9k3gpsvyy79o)
- [http://www.openwall.com/lists/oss-security/2026/06/11/2](http://www.openwall.com/lists/oss-security/2026/06/11/2)

## Related threats

- [Apache CXF denial of service via attachment headers](https://junglewise.ai/threats/cve-2026-50645-apache-cxf-denial-of-service-via-attachment-headers)
- [Apache CXF signature verification bypass in JwsJsonContainerRequestFilter](https://junglewise.ai/threats/cve-2026-50634-apache-cxf-signature-verification-bypass-in)
- [Apache CXF race condition in AbstractOAuthDataProvider](https://junglewise.ai/threats/cve-2026-50631-apache-cxf-race-condition-in-abstractoauthdataprovider)
- [Apache CXF inverted IP binding check in OAuthRequestFilter](https://junglewise.ai/threats/cve-2026-50628-apache-cxf-inverted-ip-binding-check-in-oauthrequestfilter)
- [Apache CXF missing JWT Audience validation in JwtAccessTokenValidator](https://junglewise.ai/threats/cve-2026-50627-apache-cxf-missing-jwt-audience-validation-in)
