Report: Full Disclosure mailing list, 2026-10-29,
https://seclists.org/fulldisclosure/2026/Nov/1
Disposition: OUT-OF-MODEL, functional bug WW-5852; no security property of
the framework is involved (THREAT_MODEL.md section 13)
TLP:CLEAR

In short

This is a real bug in the REST plugin's content negotiation and not a
vulnerability. Which representation a client receives is content
negotiation; the representation the plugin falls back to is the one the
application configured as its default.

What the report describes

DefaultContentTypeHandlerManager splits the Accept header on commas and
looks each token up as-is. A token with a leading space, as most HTTP
clients send after a comma, does not match, so the request falls back to
the handler for the default extension. The post suggests the default
representation could expose fields the client did not ask for.

What the framework does with that input

- The Accept header is split on "," and each token is looked up in the
handler map without trimming; trimming happens only after a ";" parameter
separator (DefaultContentTypeHandlerManager.getHandlerForResponse and
findHandler). The project confirmed this from source on both maintained
lines.
- When no token matches, the handler for struts.rest.defaultExtension is
used, which the application configures.

Why this is not a vulnerability

The REST plugin serialises the same action properties into every
representation; which serialiser runs is not an access control, and the
fallback is the application's own default. The threat model lists the
properties the framework defends (section 8) and this is not one of them;
what an application exposes in its default representation is the
application's data model (section 9).

What the project is doing

WW-5852 fixes the token handling so that whitespace around Accept tokens is
ignored.

What users should do

Nothing is required. Applications whose default representation differs from
the others should review what it serialises, which applies regardless of
this bug.

References

- https://issues.apache.org/jira/browse/WW-5852
- https://struts.apache.org/plugins/rest/
- https://github.com/apache/struts/blob/main/THREAT_MODEL.md (sections 8,
9, 13)
- https://github.com/apache/struts/blob/main/SECURITY.md

New evidence goes to [email protected]; questions about this
notice go to this list.

on behalf of the Apache Struts PMC
Ɓukasz

Reply via email to