github medusajs/medusa v2.22.5
v2.22.5: Security Hardening for Unsafe Parameters

latest release: v2.22.6
one hour ago

⚠️ Deprecated: this release is deprecated as its packages are missing files. Make sure to update to v2.22.6 instead. It has the same security release.

Highlights

Hardened Query Parameter Handling

This release hardens how Medusa turns dotted fields, filter, and order query parameters into its internal query objects. Unexpected path segments are now skipped or rejected consistently, and malformed query-parameter keys return a 400 error instead of a 500.

Projects hosted on Medusa Cloud are not impacted and require no action. We recommend that all self-hosted projects update to this version as soon as possible.

Patches for Older Versions

If you can't update to v2.22.5 yet, download the patch for your installed Medusa version:

Each ZIP contains the patch files and a SKILL.md with step-by-step instructions to apply and verify them using your package manager (npm, Yarn, pnpm, or bun). You can follow the instructions manually or point your AI coding agent at the SKILL.md:

Follow the instructions in 2.15.3-2.17.2/SKILL.md

Features

Bugs

  • fix(create-medusa-app): apply --version to scaffolded plugins by @medusa-os-bot in #17716
  • fix(utils, query, framework): harden dotted field/filter path handling when building queries by @medusa-os-bot in #17712
  • fix(medusa-oas-cli): keep each tag once when merging base file tags by @medusa-os-bot in #17714
  • fix(core-flows): don't copy a location's fulfillment sets into each shipping option by @medusa-os-bot in #17710
  • fix(promotion): let the automatic promotion prefilter use the promotion_id index by @medusa-os-bot in #17708
  • fix(docs): fix broken links and content parity in agent markdown by @shahednasser in #17698

Documentation

Chores

New Contributors

Full Changelog: v2.22.4...v2.22.5

Don't miss a new medusa release

NewReleases is sending notifications on new releases.