Skip to content

[RESTEASY-3823] - Fix information disclosure in DefaultExceptionMapper - #5126

Merged
jamezp merged 3 commits into
resteasy:mainfrom
fabiobrz:RESTEASY-3823
Nov 5, 2026
Merged

jamezp merged 3 commits into
resteasy:mainfrom
fabiobrz:RESTEASY-3823

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:12
@fabiobrz fabiobrz changed the title Fix information disclosure in DefaultExceptionMapper [RESTEASY-3823] - Fix information disclosure in DefaultExceptionMapper Nov 4, 2026
fabiobrz and others added 2 commits November 5, 2026 12:08
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 merged commit 9b356b1 into resteasy:main 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