Skip to content

(7.0) [RESTEASY-3823] - Fix information disclosure in DefaultExceptionMapper - #5127

Merged
jamezp merged 3 commits into
resteasy:7.0from
fabiobrz:RESTEASY-3823.7_0
Nov 5, 2026
Merged

jamezp merged 3 commits into
resteasy:7.0from
fabiobrz:RESTEASY-3823.7_0

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.

@fabiobrz
fabiobrz requested a review from a team as a code owner November 4, 2026 17:21
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]>
---
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.7_0 branch from c2b5557 to fc31c5d Compare November 5, 2026 20:12
@jamezp
jamezp merged commit c9d4b27 into resteasy:7.0 Nov 5, 2026
9 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