Commit Graph
2 Commits
Author SHA1 Message Date
Lauri Ojansivu c2905e17ce Stop a custom-field template regex from stopping the server (ReDoS).
The ${"regex":...} token of a string-template custom field runs a pattern a
board member writes against a value another member writes. Rule e-mails format
card details on the server, so a pattern like (a+)+$ on 'aaaa...!' stopped the
one event loop for every user. The server now runs the regex in its own V8
context under a 50 ms limit, which V8 enforces inside backtracking, and pattern
and value are capped in length everywhere (the browser too, so one member's
format cannot hang the others'). A stopped regex leaves the token visible. The
negative test fails on any server call of the formatter without the bounded
runner.

Thanks to xet7 !
2026-10-02 11:21:50 +03:00
Lauri Ojansivu c8e89bd582 Add card context and URL encoding to custom field String Templates
Resolve public card, board, list and swimlane titles reactively in detail and minicard views. Preserve existing regex formatting and constrain linked source placement metadata to its authorized board.

Thanks to solunix and xet7 !

Fixes #3815,
2026-09-28 17:33:33 +03:00