Skip to content

v12.0.30

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 21:43
6d17536

Security

  • #534 eab2e32 - security: Fixed update and delete by query evaluating the filter without the caller's read permissions (GHSA-2xcm-7h22-3m66). The items matched by the filter revealed values of fields the user can't read. The filter is now checked against the user's read permissions, like a read: filtering on a field they can't read is refused with 403, and rows they can't read are not matched. This includes DELETE /users by query.
  • #539 dc3b3cb - security: Validating a batch of items no longer modifies the permission shared by the request, so every item is checked against (GHSA-8fq9-3c25-x53p) the role's own validation rule.
  • #535 bcbd0c6 - security: Fixed POST /users/invite re-sending the invitation of an already invited user, with an unchanged role, without any (GHSA-p623-wgx3-wxp8) check: the caller didn't need any permission, also when unauthenticated, and an invite_url outside of USER_INVITE_URL_ALLOW_LIST was used for the link. Re-sending now needs update access to the invited user and an allowed invite_url, like an invite that changes the role.
  • #533 2217501 - security: Fixed public registration sending the confirmation link to the address as typed instead of the address of the account it (GHSA-8xp8-xrh2-88vr) matched (GHSA-8xp8-xrh2-88vr). On MySQL/MariaDB, whose default collations are accent-insensitive, an accented look-alike such as vïctïm@example.com matched the pending account victim@example.com and received its link. A resend is now only sent when the typed address equals the stored one (ignoring case), the mail and token use the stored address, and verify-email rejects a token whose address isn't exactly the stored one.

@wbce-d9/api 12.9.2

Patch Changes

  • #534
    eab2e32 - security: Fixed
    update and delete by query evaluating the filter without the caller's read permissions (GHSA-2xcm-7h22-3m66). The
    items matched by the filter revealed values of fields the user can't read. The filter is now checked against the
    user's read permissions, like a read: filtering on a field they can't read is refused with 403, and rows they can't
    read are not matched. This includes DELETE /users by query.

    This changes nested one-to-many updates too: the related items left out of the payload (or listed in delete) are
    looked up with the user's read permissions before being detached or deleted. A user who can't read the related
    collection, or the fields of the relation, now gets a 403 for the whole update instead of detaching or deleting
    items they can't see. Related items hidden from them by a read permission filter are left untouched.

  • #539
    dc3b3cb - security: Validating
    a batch of items no longer modifies the permission shared by the request, so every item is checked against
    (GHSA-8fq9-3c25-x53p) the role's own validation rule.

  • b410b6f - Mail templates are
    now looked up by the Liquid engine in its template folders only (EXTENSIONS_PATH/templates, then the system
    templates), so a template name such as ../x or an absolute path no longer renders a file outside them
    (GHSA-mf59-3w52-vvfv). A custom template that is a symbolic link to a file outside these folders is no longer
    rendered: copy the file, or link the whole templates folder instead. In a template, an include, render or
    layout name starting with ./ or ../ is now looked up next to that template first, then in the template folders
    (still within them).

  • #536
    720d4b8 - engines.node
    accepts Node.js 24 again (^22 || ^24), so you can check your project on Node.js 24 before d9 requires it without
    engine-strict blocking the install. isolated-vm is updated to 6.2.0.

  • #535
    bcbd0c6 - security: Fixed
    POST /users/invite re-sending the invitation of an already invited user, with an unchanged role, without any
    (GHSA-p623-wgx3-wxp8) check: the caller didn't need any permission, also when unauthenticated, and an invite_url
    outside of USER_INVITE_URL_ALLOW_LIST was used for the link. Re-sending now needs update access to the invited user
    and an allowed invite_url, like an invite that changes the role.

  • #533
    2217501 - security: Fixed
    public registration sending the confirmation link to the address as typed instead of the address of the account it
    (GHSA-8xp8-xrh2-88vr) matched (GHSA-8xp8-xrh2-88vr). On MySQL/MariaDB, whose default collations are
    accent-insensitive, an accented look-alike such as vïctïm@example.com matched the pending account
    victim@example.com and received its link. A resend is now only sent when the typed address equals the stored one
    (ignoring case), the mail and token use the stored address, and verify-email rejects a token whose address isn't
    exactly the stored one.

  • Updated dependencies
    [720d4b8]:

    • @wbce-d9/extensions-sdk@10.2.1
    • @wbce-d9/app@11.4.1

@wbce-d9/extensions-sdk 10.2.1

Patch Changes

  • #536
    720d4b8 - engines.node
    accepts Node.js 24 again (^22 || ^24), so you can check your project on Node.js 24 before d9 requires it without
    engine-strict blocking the install. isolated-vm is updated to 6.2.0.

Dependency updates only: @wbce-d9/directus9@12.0.30 @wbce-d9/create-directus-extension@9.26.22