magewirephp/magewire
Magewire brings Livewire-style reactive components to Magento 2. Build dynamic, AJAX-powered storefront and admin UI with PHP components, Blade-like templates, state management, validation, and events—without custom JavaScript.
Treat 3.7.2 as an urgent security upgrade. Confirm the installed version first:
composer show magewirephp/magewire
Affected versions are 3.0.0–3.7.1; the fix is 3.7.2. If the project’s root constraint allows it, upgrade with:
composer update magewirephp/magewire:3.7.2 --with-all-dependencies
composer show magewirephp/magewire
Then review the lockfile, run the application test suite, and deploy through the project’s normal Magento process.
Where to look first:
UPGRADING.md, especially the browser-callable component methods sectionThe first practical use case is an audit of custom Magewire components. Look for browser-callable methods, event listeners, inherited helper calls, and lifecycle hooks that may now be restricted.
Use a repeatable upgrade workflow across projects:
composer.lock and deployed images for magewirephp/magewire versions in the affected range.--with-all-dependencies.composer show magewirephp/magewire in each target environment.For agencies and teams maintaining multiple client projects, inventory all lockfiles, build images, staging environments, demos, and local setups. The advisory explicitly requires upgrading every environment, not only production.
When custom components call inherited Magewire helpers or lifecycle hooks directly from the browser or from event listeners, refactor them into a deliberate public application action. That action should authorize the operation and then call the helper internally. This keeps the browser-facing surface narrow and aligns with the new restrictions.
For event-driven components, verify listener targets against the new validation rules. For lazy-loaded components, ensure lazy loading is used only with a genuine placeholder.
Hyvä Checkout 1.4.0 beta users need coordinated handling: a 1.4.0-beta6 release is expected to follow. Do not assume a Magewire-only update will work if the Checkout beta pins an affected Magewire version. Follow the Checkout release owner’s supported upgrade instructions and verify the installed Magewire dependency contains the fix.
composer update cannot reach 3.7.2, update the root constraint as part of the security upgrade.--with-all-dependencies. Transitive constraints may otherwise keep an affected Magewire version in place.composer show is not enough; verify the version actually shipped to each environment.How can I help you explore Laravel packages today?