Skip to content

9.11.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 07:23
· 469 commits to master since this release
6934ad5

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.0 call_api refused any session with no account, even when the ACL let $unauthenticated into /mcp.
  • A deployment with no permission for $unauthenticated on /mcp is 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

  • $function and $accumulator in filter are refused with 403. To allow them again, set the blacklist in your configuration:

    filterOperatorsBlacklist:
      blacklist: ["$where"]
      enabled: true
  • MCP sessions with no account. Where the ACL lets $unauthenticated into /mcp, call_api now runs the actions that the ACL allows to an anonymous request, instead of refusing every call. Check your $unauthenticated permissions if you opened /mcp to anonymous clients.