Changelog - 2026-11-07
A where key that names the prototype is refused
Security Bug FixIn one line. A filter key named __proto__, constructor or prototype names no column. It answers 400 Column NOT FOUND like any unknown column, and can no longer act on the merged filter object.
What changed
- Refused with 400. A
wherekey of one of these names, on a read or on a write that selects rows (updateBy,deleteBy,count), answersColumn NOT FOUND, also insideand,orand an include'sscope.where. - Merge. When the model has a default filter, the merge of the default and the caller's
whereno longer assigns such a key onto the merged object: it refuses it first. - Own columns only. The column lookup of
where,orderand update data reads the table's own columns, so an inherited name such astoStringis never taken for a column. - Unchanged. Every real column, a JSON path, and the operators.
Who is affected
Nobody needs to act. A client that sent one of these keys was sending a key that matches no column.
Details
| File | Package |
|---|---|
src/relational/core/repositories/dialect/filter.ts | connectors |
src/relational/core/repositories/dialect/update.ts | connectors |