Repository navigation
9.11.0
Release 9.11.0
Overview
A minor release about server-side JavaScript: the filter query parameter can no longer make MongoDB run it. Also in this release: call_api for MCP sessions with no account, and a fix for invitations on a users collection with a JSON Schema. Upgrading from 9.10.0 needs no data migration. It is a minor release, not a patch, because a default changed: filterOperatorsBlacklist now refuses $function and $accumulator too. If your clients use those operators in filter, read Behavior Changes below.
Improvements
filter cannot run JavaScript on the server
$where, $function and $accumulator are the three MongoDB operators that run JavaScript on the server. Until 9.10.0 filterOperatorsBlacklist refused only $where. It now refuses all three by default, nested anywhere in the filter query parameter, with 403.
The default is the same in restheart-default-config.yml, restheart-default-config-no-mongodb.yml and in the Helm chart values.yaml.
Docs: Security Hardening.
MCP: call_api for sessions with no account
- A session with no account can call
call_api. Its actions run as$unauthenticated, and the ACL decides each of them as it decides an anonymous REST request. Until 9.10.0call_apirefused any session with no account, even when the ACL let$unauthenticatedinto/mcp. - A deployment with no permission for
$unauthenticatedon/mcpis not affected: the MCP handshake is refused, as before.
Docs: MCP.
Bug Fixes
- Invitations on a users collection with a JSON Schema failed with
500"the JSON Schema store is not available". Invite, resend and accept now validate the user documents they write against the collection's schema, like the other account endpoints.
Behavior Changes
-
$functionand$accumulatorinfilterare refused with403. To allow them again, set the blacklist in your configuration:filterOperatorsBlacklist: blacklist: ["$where"] enabled: true
-
MCP sessions with no account. Where the ACL lets
$unauthenticatedinto/mcp,call_apinow runs the actions that the ACL allows to an anonymous request, instead of refusing every call. Check your$unauthenticatedpermissions if you opened/mcpto anonymous clients.