Skip to content

1.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 15:37
· 7 commits to main since this release
49c9adb

Security

This release fixes two vulnerabilities. Upgrade is recommended for every user.

  • Authorization bypass (GHSA-762g-2h9q-f2wr, high): ResourceAccessEvent was dispatched only by the list endpoint. It now runs first in every endpoint (get, create, update, delete, deleteMany, related lists), and a cancelled event answers 403.
  • DQL injection and hidden-column disclosure (GHSA-v6q3-fcjx-w2mv, medium): list filters and sorting accept only mapped fields the resource exposes, and ASC/DESC; anything else answers 400.

Behaviour changes

  • Listeners of react_admin_api.resource_access now see every operation (getOperation()); one that denies regardless of operation now blocks reads and writes too.
  • Filtering or sorting on a field the API does not return answers 400. Allow more with getFilterableFields() / getSortableFields() on the repository.
  • Page size is capped at 1000.
  • Related-resource lists work (they failed in every earlier release).

See UPGRADING.md.

Changes since 1.1.0

  • fix(security): enforce resource access on every endpoint, allowlist list fields (#12) (49c9adb)

Full Changelog: 1.1.0...1.2.0