You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider limiting total auto-grow work during Java form binding #13982
Each individual index is below the default limit of 256, so the request is allowed, but the total amount of object/collection growth can multiply across path depth and submitted fields.
This is not exploitable for arbitrary form models: the submitted field path needs to match the application's form object structure. Still, nested collection-heavy forms such as orders, surveys, invoices, or configurable products could make binding allocate more objects than expected.
Possible follow-up options:
Add a maximum nested binding path depth, for example play.forms.binding.maxNestedPathDepth.
Add a per-bind auto-grow operation budget, for example play.forms.binding.maxAutoGrowOperations.
Add tests that submit deeply nested indexed paths and verify Play returns normal form errors instead of excessive allocation, stack overflow, or uncaught binding exceptions.
A total auto-grow budget may be more robust than only a depth limit because it limits overall binding work regardless of the exact path shape.
Activity