Repository navigation
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 anx-token-accesskey. SeeMIGRATION.md. - Checkout charges only stored payment credentials of the order owner (
@unchainedshop/core): apaymentCredentialsobject 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. SeeMIGRATION.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 whenSAFERPAY_PWwas 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). removeUserchecks theremoveUseraction,User.rolesandUser.tokenscheckviewUserRolesandviewUserTokens(@unchainedshop/api) instead ofupdateUserandviewUserPrivateInfos. SeeMIGRATION.md.shopInfo.adminUiConfig.userTagsadds the stored user tags only for callers withviewUsers(@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, andADD_MEDIArefuses 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
tokenquery parameters, and/externalframes only configured extension links. - The example apps no longer create and log an admin access token when
NODE_ENVisproduction. - MinIO removes the uploaded object when
MINIO_UPLOAD_PREFIXis 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/static11 is accepted (@unchainedshop/api): the optional peer range now allows>= 10.1.3 < 12.