Search by

graycore / magento2-style-smuggler-patch

A Magento 2 module that mitigates the StyleSmuggler remote code execution vulnerability

Maintainers

Package info

github.com/graycoreio/magento2-style-smuggler-patch

Type:magento2-module

pkg:composer/graycore/magento2-style-smuggler-patch

Transparency log

Fund package maintenance!

graycoreio

Statistics

Installs: 98

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v2.0.0 2026-09-05 18:41 UTC

This package is auto-updated.

Last update: 2026-09-05 18:53:17 UTC


README

Packagist Downloads Packagist Version Packagist License MageCheck Status MageCheck Supported Version

Caution

This is an unofficial stop-gap, not an official Adobe patch, and it carries no warranty. See the LICENSE.

It hardens three points on the StyleSmuggler chain: the email template {{block}} directive refuses backend blocks, the grid row URL generator factory validates the class before building it, and Web API fatal error reports have their PHP open tags broken. That is hardening, not a fix — the vulnerability itself is unpatched, and other paths through it remain open.

A vulnerable store may already be compromised. Mitigating an entry point does not remove a backdoor that is already there. Audit your store.

The mitigation will change as better fixes are found. Read the CHANGELOG before every upgrade. Test on a staging environment first. Have a rollback plan.

Magento Version Support

Magento v2.4 Supported

Purpose

This repo creates a stop-gap patch for the Style Smuggler vulnerability. It's purely mitigation. It likely isn't perfect, but it's my current best assessment of how to mitigate the vulnerability.

This package will change versions as I trial different layers of fixes to the vulnerability.

Getting Started

This module is intended to be installed with composer. From the root of your Magento 2 project:

  1. Download the package
composer require graycore/magento2-style-smuggler-patch
  1. Enable the package
./bin/magento module:enable Graycore_StyleSmugglerPatch

Upgrading