Skip to content

Unchained Engine v4.9.2

Latest

Choose a tag to compare

@pozylon pozylon released this 19 Nov 17:09
· 530 commits to master since this release
0d19a38

Rolls up the v4.9 line (4.9.0, 4.9.1 and 4.9.2) and contains everything in v4.8.34.

Unchained Engine v4.9

Minor

  • Breaking: graphql-yoga 6 (@unchainedshop/api): the graphql-yoga peer is now ^6.0.1, and the graphql-js engine swap is gone because yoga's own executor applies argument defaults again. See MIGRATION.md.
  • Breaking (Stripe plugin): stripe 23 and API version 2026-10-28.endive (@unchainedshop/plugins): intents use allowed_payment_method_types, and a payment_method_types transaction context is sent as allowed_payment_method_types, which the API version would otherwise reject. See MIGRATION.md.
  • Node.js 24.22.1+ or 26.12.1+ required (@unchainedshop/platform): the engines range moves to the patched release of each supported line.
  • All dependencies upgraded to the latest release of their current major.
  • web-push 4 is accepted (@unchainedshop/plugins): the optional peer range now allows the ESM-only web-push 4.
  • Fastify apps start with @fastify/session 11.1.6 (@unchainedshop/api): the session store now implements the conditional compareAndSet write that 11.1.6 (GHSA-2hw7-jxfh-4rm3) requires of custom stores; before, the Fastify adapter failed at startup with "the store must implement compareAndSet".
  • Express temp uploads reject oversized multipart array indexes (@unchainedshop/api): the upload parser limits fieldArrayIndexLimit to 100, and the multer peer requires 2.3 or later.

Security

  • Breaking: PayPal orders are bound to the order payment they pay (@unchainedshop/plugins): charge() accepted any completed PayPal order with the right amount and currency, so one PayPal payment could be replayed to pay any number of equal-priced orders. Storefronts now put the order payment id into purchase_units[0].custom_id when they create the PayPal order; other PayPal orders are refused before anything is captured. The SDK is loaded through its default export, so PayPal charges work again: orders was undefined in its ESM namespace and every charge failed. See MIGRATION.md. (GHSA-pf69-hxqg-8q5j)
  • Only privileged users change privileged users (@unchainedshop/api): a role with manageUsers could give itself or anybody the admin role or take it away, and a role that may update users could set an admin's password, change their e-mail or username, remove or impersonate them. Changing a user whose roles grant the new managePrivilegedUsers action (admin only by default), or giving a user such roles, now requires that action too. See MIGRATION.md. (GHSA-pprf-rq6p-4h6h)
  • Breaking: setPassword refuses the caller's own account (@unchainedshop/api): it sets a password without the old one, which a hijacked session could use to keep the account. Use changePassword or the password reset flow.
  • Breaking: writing User.meta needs the new updateUserMeta action (@unchainedshop/api): customers could write their own meta through updateUserProfile, which the documented B2B pricing pattern trusts. Only the admin role has the action by default.
  • Breaking: PaymentProvider.configuration, DeliveryProvider.configuration and WarehousingProvider.configuration require the matching manage* action (@unchainedshop/api): stored provider credentials were readable by anyone who could reach a provider through Product.simulatedDispatches or a cart's supported providers, which includes anonymous callers.
  • confirmMediaUpload only accepts the caller's own upload tickets (@unchainedshop/api): it took a file id from the client with no ownership check, so any logged-in user could rewrite the type and size of any file record.
  • The MCP order_management TOP_CUSTOMERS action strips confidential service hashes (@unchainedshop/api): it returned raw user documents including services — password hashes, plaintext reset tokens and the hashed access token — unlike every sibling normalizer.
  • A new password ends the sessions established with the old one (@unchainedshop/core-users, @unchainedshop/api): changePassword, resetPassword and an admin's setPassword left existing sessions valid. The caller's own session is re-established, so changing your own password no longer signs you out.
  • The reset and verification token query resolvers no longer log the raw token (@unchainedshop/api), and the express /temp-upload route authorizes before the multipart parser buffers the body, with multer size and part limits (@unchainedshop/api).
  • Sensitive work fields are obfuscated by default (@unchainedshop/utils, @unchainedshop/core-worker): buildObfuscatedFieldsFilter never applied its default list and modified the work it masked. Without blacklistedVariables, password, token, secret, authorization and the other defaultObfuscatedFields are now obfuscated case-insensitively in WORK_* events, Work.input/result/error and the MCP work tools; the stored work and the work adapters process keep the plain values. See MIGRATION.md.

Patch

  • Work expires 30 days after it is scheduled (@unchainedshop/core-worker): the work queue deleted work 30 days after created, so work scheduled further ahead was deleted before it ran. Migration 20261104120100 adds expires to existing work. See MIGRATION.md.
  • Confirming and rejecting an order run once (@unchainedshop/core): confirmOrder and rejectOrder read the order again under their lock, so concurrent calls no longer send the delivery and mint the tokens twice, or reject an order that was just confirmed (#817).
  • A guest login keeps the account's bookmarks (@unchainedshop/core): with mergeUserCartsOnLogin: false, logging in from a guest session without bookmarks deleted all bookmarks of the account (#816).
  • MCP WORKER_PROCESS_NEXT returns the work it processed instead of answering before it finished (@unchainedshop/api).