Skip to content

Unchained Engine v4.9.5

Latest

Choose a tag to compare

@pozylon pozylon released this 30 Nov 15:42
· 776 commits to master since this release
9c8b2a6

Patch release of the v4.9 line. Contains everything in v4.9.4.

Security

  • Token access keys require UNCHAINED_SECRET (@unchainedshop/core-warehousing, @unchainedshop/api): without it the key hashed only the token id and its owner, so anyone who knew both could forge an x-token-accesskey. See MIGRATION.md.
  • Checkout charges only stored payment credentials of the order owner (@unchainedshop/core): a paymentCredentials object in the payment context now selects the owner's stored credentials with that token instead of reaching the adapter as sent.
  • Stripe intents keep the amount, currency, customer and metadata the engine sets (@unchainedshop/plugins): the shopper's transaction context was applied last and could replace them or add Connect settlement fields; setup intents register only for the user who signed them. See MIGRATION.md.
  • Datatrans registers an alias only for the user who started the transaction and no longer logs the expected webhook signature (@unchainedshop/plugins); in static-sign mode that was the sign key.
  • Payrexx and Saferpay webhooks only check out the payment they authorize (@unchainedshop/plugins): a stale Payrexx payment checked out the cart's current pay-later payment, Saferpay signed without a secret when SAFERPAY_PW was unset, and a rejected Payrexx checkout cancelled the reservation of the gateway it was given. (GHSA-58vm-p6p5-pmrh)
  • Checkout rechecks that the selected delivery and payment providers are supported (@unchainedshop/core): a provider kept from before the cart became ineligible could still be checked out when no provider was supported.
  • Removing an e-mail address revokes its verification and reset tokens, a WebAuthn challenge logs in once, and a new password also ends the sessions in which the user impersonates someone (@unchainedshop/core-users).
  • removeUser checks the removeUser action, User.roles and User.tokens check viewUserRoles and viewUserTokens (@unchainedshop/api) instead of updateUser and viewUserPrivateInfos. See MIGRATION.md.
  • shopInfo.adminUiConfig.userTags adds the stored user tags only for callers with viewUsers (@unchainedshop/api).
  • Bulk import payloads are private files (@unchainedshop/api): their GridFS URLs derive from the upload time and served the payload without a signature.
  • A CSV export whose download URL fails removes its file, and cells that start like a formula get a leading ' (@unchainedshop/core): MinIO stored private exports in the public bucket before it refused the URL.
  • MCP tools log the action instead of the parameters (@unchainedshop/api), which included passwords and provider configuration; order and user lookups omit provider configuration and credential tokens, and ADD_MEDIA refuses failed downloads.
  • Wallet pass handlers no longer log the access key (@unchainedshop/ticketing), and ERC metadata no longer signs private product media (@unchainedshop/plugins).
  • Admin UI: order items render the product title as text, Matomo no longer receives token query parameters, and /external frames only configured extension links.
  • The example apps no longer create and log an admin access token when NODE_ENV is production.
  • MinIO removes the uploaded object when MINIO_UPLOAD_PREFIX is set (@unchainedshop/plugins).
  • The ETH minter counts the tokens of its contract (@unchainedshop/plugins): it filtered by the contract standard, so ERC721 serials restarted with every order and stock never decreased. The Fastify ERC metadata route matches the requested serial again.
  • Audit log hashes cover nested fields and a failed write no longer blocks the following ones (@unchainedshop/events); verify() still accepts entries hashed before.

Patch

  • @fastify/static 11 is accepted (@unchainedshop/api): the optional peer range now allows >= 10.1.3 < 12.