Posted by Daniel Owens via Fulldisclosure on Nov 01 Description The Apache Struts2 REST Plugin's `DefaultContentTypeHandlerManager.getHandlerForResponse(HttpServletRequest, HttpServletResponse)` splits the `Accept` header on commas and passes each resulting token directly to `findHandler(String)` wi
Briefing
Written from the coverage below · deepseek-v4.1-flash
The Struts2 REST plugin splits the Accept header on commas and passes tokens to findHandler without trimming. Because trimmed lookup only retries on tokens containing a semicolon, tokens with leading spaces break content negotiation and fall back incorrectly.
Why it mattersClients sending whitespace-padded Accept values may receive mismatched content types from Struts2 REST endpoints, potentially breaking integrations or exposing unintended formats.
ActionReview Struts REST content-negotiation behavior if clients send whitespace-padded Accept tokens; no patch version is given, so monitor Apache for a fix.
Coverage
1 article