Medusa v2.23.1stable Released Nov 26, 2026
Impact Score: 9/10

Medusa: v2.23.1: Shipping Validation, Auth Callback Hook, S3 Upload Hardening

Source available - automated, not human-reviewed

Component: medusajs · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-26.

Automated impact estimate - compatibility not verified
📄 .MD
⚡ Executive Summary (TL;DR)

Medusa v2.23.1 introduces a breaking behavior change that requires a shipping method for carts containing items linked to a shipping profile. It also adds an OAuth authCallbackValidated hook and hardens S3 presigned upload URL file sizes.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Review your checkout flow to ensure that a shipping method is collected for shippable items before cart completion, and adopt the new authCallbackValidated hook for custom OAuth post-authentication logic.

📊 Product & Engineering Leads

Checkout experiences will now strictly enforce shipping method selection for applicable products, preventing order completion if shipping is missing.

⚙️ DevOps & Security

Verify that S3 presigned upload integrations account for the new file size validation mechanism to avoid unintended upload rejections.

✨ New Features & Capabilities (2)

  • authCallbackValidated hook with provider raw authentication data
  • storeTokens option on the callback workflow to persist provider tokens directly

⚡ Performance & Enhancements (2)

  • Signed file size in S3 presigned upload URLs to prevent unauthorized oversized uploads
  • Core packages licensed strictly under MIT

🔧 Bug Fixes & Patches (15)

  • Store when password was updated for refresh and MFA validation
  • Only restore reservations deleted by deleteReservationsByLineItemsStep on compensation
  • Stop capping draft order item quantities at 100
  • Record the actor, not the email, of a password update with a reset token
  • Apply shipping promotions on draft order edits
  • Allow assigning a hook created inside a when().then() callback in eslint-plugin
  • Fix hard delete of link rows building an empty RETURNING clause
  • Remove shipping methods added by a canceled order change
  • Accept comma decimal values when creating gift cards in loyalty-plugin
  • Apply automatic promotions with ne rules on missing attributes
  • Release reserved quantity at old location on reservation move
  • Validate line items in deleteLineItemsWorkflow
  • Don't act on an unrelated cart for a deleted payment session
  • Don't duplicate adjustments after undoing an order change
  • Require shipping for order items with a shipping profile

❓ Frequently Asked Questions

Does Medusa v2.23.1 contain breaking changes?

Yes, carts containing items linked to a shipping profile now strictly require a shipping method before order completion can occur.

What is the primary highlight of v2.23.1?

The primary highlight is the shipping validation requirement for items with shipping profiles, alongside the new authCallbackValidated hook and S3 upload size hardening.

How should teams prepare to upgrade to v2.23.1?

Teams should audit their checkout implementation to guarantee that shippable line items collect a valid shipping method before attempting cart completion to prevent failed orders.

📄 View Raw Release Notes (Original Developer Log)
<!-- ![v2.23.1](https://res.cloudinary.com/dza7lstvk/image/upload/v1795705520/Releases/v2-23-1-5eeb2f.png) # v2.23.1: Shipping Validation, Auth Callback Hook, S3 Upload Hardening Cart items linked to a shipping profile now require a shipping method before checkout. This release also adds an authCallbackValidated workflow hook that exposes OAuth provider data for custom post-authentication logic. CMS_BREAK --> Docs MCP users can update their project using the following prompt: ```bash Update my Medusa project to v2.23.1 ``` ## Highlights ### Shipping Required for Items with Shipping Profiles **Behavior change** > Affects stores with product variants linked to a shipping profile. Carts containing such items now require a shipping method before the order can be placed. Cart completion now validates that a shipping method is provided for all line items whose variants are linked to a shipping profile. If your checkout flow does not collect a shipping method for shippable items, those carts will now fail to complete after upgrading. [#17936](https://github.com/medusajs/medusa/pull/17936) --- ### Auth Callback Hook with Provider Data The auth callback workflow now has a `authCallbackValidated` hook after a successful OAuth validation. The hook receives the authenticated identity along with the provider's raw authentication data, enabling custom post-authentication logic such as storing OAuth tokens or syncing user attributes from the provider. A new `storeTokens` option on the callback workflow lets you persist the provider's tokens directly from the hook subscriber. [#17980](https://github.com/medusajs/medusa/pull/17980) --- ### Signed File Size in S3 Presigned Upload URLs The S3 file provider now signs the file size into presigned upload URLs. S3 rejects any upload whose content length does not match the size signed into the URL, preventing unauthorized oversized uploads. [#17923](https://github.com/medusajs/medusa/pull/17923) ## Features * feat(core-flows,auth): add an authCallbackValidated hook with the provider's data, and a storeTokens option by [@srindom](https://github.com/srindom) in [#17980](https://github.com/medusajs/medusa/pull/17980) * feat(file-s3): sign the file size into presigned upload URLs by [@peterlgh7](https://github.com/peterlgh7) in [#17923](https://github.com/medusajs/medusa/pull/17923) ## Bugs * fix(medusa,auth,auth-emailpass,utils,types): store when password was updated for refresh and MFA validation by [@shahednasser](https://github.com/shahednasser) in [#17779](https://github.com/medusajs/medusa/pull/17779) * fix(core-flows): only restore the reservations deleted by deleteReservationsByLineItemsStep on compensation by [@NicolasGorga](https://github.com/NicolasGorga) in [#18007](https://github.com/medusajs/medusa/pull/18007) * fix(draft-order): stop capping draft order item quantities at 100 by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#18012](https://github.com/medusajs/medusa/pull/18012) * fix(medusa): record the actor, not the email, of a password update with a reset token by [@sradevski](https://github.com/sradevski) in [#18013](https://github.com/medusajs/medusa/pull/18013) * fix(medusa): record the actor, not the email, of a password update with a reset token by [@sradevski](https://github.com/sradevski) in [#18022](https://github.com/medusajs/medusa/pull/18022) * fix(core-flows,order): apply shipping promotions on draft order edits by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17996](https://github.com/medusajs/medusa/pull/17996) * fix(eslint-plugin): allow assigning a hook created inside a when().then() callback by [@shahednasser](https://github.com/shahednasser) in [#17994](https://github.com/medusajs/medusa/pull/17994) * fix(utils): fix hard delete of link rows building an empty RETURNING clause by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17993](https://github.com/medusajs/medusa/pull/17993) * fix(core-flows): remove shipping methods added by a canceled order change by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17968](https://github.com/medusajs/medusa/pull/17968) * fix(loyalty-plugin): accept comma decimal values when creating gift cards by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17978](https://github.com/medusajs/medusa/pull/17978) * fix(promotion): apply automatic promotions with ne rules on missing attributes by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17965](https://github.com/medusajs/medusa/pull/17965) * fix(inventory): release reserved quantity at old location on reservation move by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17962](https://github.com/medusajs/medusa/pull/17962) * fix(core-flows): validate line items in deleteLineItemsWorkflow by [@shahednasser](https://github.com/shahednasser) in [#17963](https://github.com/medusajs/medusa/pull/17963) * fix(core-flows): don't act on an unrelated cart for a deleted payment session by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17946](https://github.com/medusajs/medusa/pull/17946) * fix(order): don't duplicate adjustments after undoing an order change by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17939](https://github.com/medusajs/medusa/pull/17939) * fix(core-flows): require shipping for order items with a shipping profile by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17936](https://github.com/medusajs/medusa/pull/17936) ## Documentation * docs: document runtime log contents and fix time-range limits in Cloud logs guide by [@shahednasser](https://github.com/shahednasser) in [#18019](https://github.com/medusajs/medusa/pull/18019) * docs: document migrating a newer PostgreSQL database to Cloud by [@shahednasser](https://github.com/shahednasser) in [#18018](https://github.com/medusajs/medusa/pull/18018) * docs: document Medusa v2.23.0 payments requirement and version warning [automated] by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#18017](https://github.com/medusajs/medusa/pull/18017) * docs: fix backend URL env variable in Next.js starter guide [automated] by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#18016](https://github.com/medusajs/medusa/pull/18016) * docs: document Medusa MCP write access and MCP and Connectors settings by [@shahednasser](https://github.com/shahednasser) in [#18010](https://github.com/medusajs/medusa/pull/18010) * docs: document Medusa v2.22.3 requirement for Medusa Payments by [@shahednasser](https://github.com/shahednasser) in [#18006](https://github.com/medusajs/medusa/pull/18006) * docs: medusa payments why connect stripe by [@olivermrbl](https://github.com/olivermrbl) in [#18005](https://github.com/medusajs/medusa/pull/18005) * docs: medusa payments by [@shahednasser](https://github.com/shahednasser) in [#17972](https://github.com/medusajs/medusa/pull/17972) * docs: document connection string reveal and metered add-ons in Cloud [automated] by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17997](https://github.com/medusajs/medusa/pull/17997) * docs: remove Docs MCP server authentication by [@shahednasser](https://github.com/shahednasser) in [#17981](https://github.com/medusajs/medusa/pull/17981) * docs: RBAC in cloud by [@shahednasser](https://github.com/shahednasser) in [#17979](https://github.com/medusajs/medusa/pull/17979) * docs: remove contact section from Docs MCP server guides by [@shahednasser](https://github.com/shahednasser) in [#17982](https://github.com/medusajs/medusa/pull/17982) * docs: doc changes for next release [automated] by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17835](https://github.com/medusajs/medusa/pull/17835) ## Chores * chore(medusa,js-sdk,types): document audit log routes and use API reference paths by [@shahednasser](https://github.com/shahednasser) in [#17999](https://github.com/medusajs/medusa/pull/17999) * chore: add license check url env var by [@NicolasGorga](https://github.com/NicolasGorga) in [#17971](https://github.com/medusajs/medusa/pull/17971) * chore: license core packages under MIT only by [@olivermrbl](https://github.com/olivermrbl) in [#17990](https://github.com/medusajs/medusa/pull/17990) * chore: replace deprecated axios-retry with inline retry loops by [@shahednasser](https://github.com/shahednasser) in [#17941](https://github.com/medusajs/medusa/pull/17941) * chore(deps): update @graphql-codegen/core to v7 by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17959](https://github.com/medusajs/medusa/pull/17959) * chore(deps): update @graphql-codegen/typescript to v7 by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17960](https://github.com/medusajs/medusa/pull/17960) * chore(deps): update patch dependencies by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17958](https://github.com/medusajs/medusa/pull/17958) * chore(deps): update minor dependencies by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17952](https://github.com/medusajs/medusa/pull/17952) * chore(deps): update patch dependencies by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17951](https://github.com/medusajs/medusa/pull/17951) * chore(docs): Updated UI Reference (automated) by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17934](https://github.com/medusajs/medusa/pull/17934) * chore(docs): Update version in documentation (automated) by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17935](https://github.com/medusajs/medusa/pull/17935) * chore(docs): Generated API Reference (automated) by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17938](https://github.com/medusajs/medusa/pull/17938) * chore(docs): Generated References (automated) by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17937](https://github.com/medusajs/medusa/pull/17937) **Full Changelog**: [v2.23.0...v2.23.1](https://github.com/medusajs/medusa/compare/v2.23.0...v2.23.1) <!-- release-notes-sha: c2e715d7ee2aafae72bf7d4866b8795536e968c5 -->
← Older Version Medusa v2.23.0