Skip to content

(6.2) [RESTEASY-3823] - Fix information disclosure in DefaultExceptionMapper - #5128

Merged
jamezp merged 3 commits into
resteasy:6.2from
fabiobrz:RESTEASY-3823.6_2
Nov 5, 2026
Merged

jamezp merged 3 commits into
resteasy:6.2from
fabiobrz:RESTEASY-3823.6_2

Conversation

@fabiobrz

@fabiobrz fabiobrz commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Upstream issue: https://redhat.atlassian.net/browse/RESTEASY-3823

The DefaultExceptionMapper was returning exception.getLocalizedMessage() as the HTTP 500 response entity, leaking internal exception details to clients. Remove the entity body so that unhandled exceptions produce a bare HTTP 500 with no body.

Server-side error logging is preserved unchanged.
WebApplicationException responses are returned unchanged.

Fixes: CVE-2026-120971


AI-Disclosure: Research, log analysis, and root cause identification were led and driven by human input and guidance. AI findings were critically reviewed and manually verified. The resulting code changes have been human-reviewed, tested, and validated.

The DefaultExceptionMapper was returning exception.getLocalizedMessage()
as the HTTP 500 response entity, leaking internal exception details to
clients. Remove the entity body so that unhandled exceptions produce a
bare HTTP 500 with no body.

Server-side error logging is preserved unchanged.
WebApplicationException responses are returned unchanged.

Fixes: CVE-2026-120971

---
AI-Disclosure: Research, log analysis, and root cause identification were led and driven by human input and guidance.
AI findings were critically reviewed and manually verified.
The resulting code changes have been human-reviewed, tested, and validated.

Co-authored-by: IBM Bob <[email protected]>
@fabiobrz
fabiobrz requested a review from a team as a code owner November 4, 2026 17:24
@fabiobrz fabiobrz changed the title [RESTEASY-3823] - Fix information disclosure in DefaultExceptionMapper (6.2) [RESTEASY-3823] - Fix information disclosure in DefaultExceptionMapper Nov 4, 2026
---
AI-Disclosure: Research, log analysis, and root cause identification were led and driven by human input and guidance.
AI findings were critically reviewed and manually verified.
The resulting code changes have been human-reviewed, tested, and validated.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@jamezp
jamezp force-pushed the RESTEASY-3823.6_2 branch from 7a26fd0 to 0bfe96b Compare November 5, 2026 21:56
@jamezp
jamezp merged commit f1b4e68 into resteasy:6.2 Nov 5, 2026
10 checks passed
@jamezp

jamezp commented Nov 5, 2026

Copy link
Copy Markdown
Member

Thank you @fabiobrz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants