Changelog - 2026-07-13
Security and Reliability Hardening
Security Breaking Change Bug Fix EnhancementIn one line. A live SQL injection and two default-filter bypasses are closed, and ten other bugs across search, logging, uploads and boot are fixed. Two fixes change existing behavior.
What changed
Security:
- SQL injection through array filters. The
overlapsandcontainsoperators concatenated filter values into raw SQL, so a crafted array value could run arbitrary SQL. Values are now bound. - Default filters can no longer be widened. A repository with a built-in scope (for example soft-delete) could be bypassed by passing an
orclause. Filters now compose with the default instead of overriding it. - Search results hide hidden fields.
hiddenProperties(for examplepassword) was enforced for Postgres reads, but the Typesense and Meilisearch connectors returned those fields. - Dependency errors no longer leak. A wrapped connector error could expose the raw driver message in the HTTP response's
extrafield. It is now visible only in development.
Bug fixes:
deleteAll({})no longer wipes the collection. It used to delete every row; now it throws.- A constructor parameter missing
@injectfails at boot, with a message naming the class and parameter. - Meilisearch errors are classified correctly. A normal "does this already exist" check on
create()could look like the search engine being down. - A rejected email is retried. An SMTP rejection was treated as a successful queue job, so the message vanished.
- Logs keep the error.
logger.debug('failed: %j', error)printed{}for anError, and nested objects logged as[Object]. - Uploads cannot escape their target folder. The static-asset controller also no longer double-decodes, which could turn an encoded
%2Fin a filename into a path separator. - Zero-byte files are accepted.
Enhancements:
NODE_ENV=devbehaves like development. It used to fall through to sanitized production-style errors.- The boot report is no longer empty. It lists the booters that ran, per-phase timing and total duration.
Who is affected
- Every production app. The security fixes apply automatically.
- Code that calls
deleteAll({}), mixes@injectand plain constructor parameters, logs errors with%j, relies onor: []matching every row, or runs withNODE_ENV=dev. See breaking changes.
Breaking changes
| If you | Then |
|---|---|
call deleteAll({}) expecting a truncate | pass options: { force: true } |
have a constructor mixing @inject and plain parameters | decorate every parameter |
log errors with %j | switch to %s, or the error's message and stack are dropped |
rely on or: [] matching every row | it now matches none |
set NODE_ENV=dev and expected sanitized errors | use alpha or staging instead |
typescript
await repository.deleteAll({ where: { status: 'archived' } }); // scoped - unchanged
await repository.deleteAll({ options: { force: true } }); // whole collection - now explicit
await repository.deleteAll({}); // now throwsEvery constructor parameter of a container-instantiated class must carry @inject. Mixing was never supported; it now fails at boot:
[UserService] Constructor parameter 1 has no @inject | Every parameter of a
container-instantiated class must be decorated - the container cannot supply
an undecorated one