CVE-2026-17615
resteasy-core: RESTeasy SourceProvider remote unauthenticated file read
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 31, 2026
Updated · October 29, 2026
Description
A flaw was found in RESTEasy's SourceProvider. This vulnerability allows an unauthenticated attacker to perform an unauthenticated remote file read. By sending a specially crafted XML body with a DOCTYPE declaration referencing external entities to an endpoint that accepts application/xml and returns Source or StreamSource, the server can be tricked into resolving the entity and including sensitive file contents in the HTTP response. This is due to the SourceProvider.writeTo() method creating a SAXParser without disabling external entity resolution, leading to an XML External Entity (XXE) vulnerability.
Statement
Important: This flaw allows unauthenticated remote file disclosure due to improper XML external entity (XXE) resolution in RESTEasy's SourceProvider. An attacker can exploit this by sending a crafted XML request to an exposed endpoint that processes application/xml and returns Source or StreamSource types, leading to the disclosure of sensitive server-side files. This affects applications utilizing RESTEasy where endpoints are configured to accept XML input and return Source or StreamSource objects, potentially exposing sensitive data on Red Hat supported products.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, avoid exposing RESTEasy endpoints that return Source or StreamSource types. Alternatively, implement a custom MessageBodyWriter for Source types that explicitly applies XML security features to the SAXParserFactory before parsing. Changes to application configuration or code typically require an application redeployment or restart to take effect.
CVSS / CWE
CVSS 3.1 · 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE-611 · Improper Restriction of XML External Entity Reference