Security
- #534
eab2e32- security: Fixed update and delete by query evaluating thefilterwithout 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 with403, and rows they can't read are not matched. This includesDELETE /usersby 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: FixedPOST /users/invitere-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 aninvite_urloutside ofUSER_INVITE_URL_ALLOW_LISTwas used for the link. Re-sending now needs update access to the invited user and an allowedinvite_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 asvïctïm@example.commatched the pending accountvictim@example.comand 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, andverify-emailrejects 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 thefilterwithout 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 with403, and rows they can't
read are not matched. This includesDELETE /usersby 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 a403for 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../xor 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 wholetemplatesfolder instead. In a template, aninclude,renderor
layoutname 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-strictblocking the install. isolated-vm is updated to 6.2.0. -
#535
bcbd0c6- security: Fixed
POST /users/invitere-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 aninvite_url
outside ofUSER_INVITE_URL_ALLOW_LISTwas used for the link. Re-sending now needs update access to the invited user
and an allowedinvite_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 asvïctïm@example.commatched the pending account
victim@example.comand 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, andverify-emailrejects 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-strictblocking 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