Daily updates from Odoo
Monday, July 6, 2026
1 change · 17.0
Security fixes and vulnerability patches
Website helpdesk forms now verify that preset hidden or injected values have not been changed in the browser before submission. This helps prevent users from tampering with customized form settings and makes altered submissions fail rather than silently accepting unsafe values.
Original PR description
Website forms can be customized using the website editor. These customized values are directly embedded in the form in a hidden input or injected via the `data-for` js mechanism. This commit ensures that these values are not modified by the client. It is necessary to generate the token after the rendering (in `_render_template`) because we don't know all the values to sign using only the stored arch. In fact, several values are dynamically computed during the rendering (see `data-for` and `t-att-data-values` tags attributes); these "js injected" values take precedence over the default values. It is better to raise an error than to correct the values when the form has been improperly modified by the end user. Task-6320608