PHPackages                             samjuk/m2-meta-security-patches - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. samjuk/m2-meta-security-patches

ActiveLibrary[Security](/categories/security)

samjuk/m2-meta-security-patches
===============================

Composer meta-package that applies critical and isolated security patches for Magento 2 / Adobe Commerce, released by Adobe

2026.07.14-p1(1mo ago)7433ShellCI passing

Since Feb 1Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/SamJUK/m2-meta-security-patches)[ Packagist](https://packagist.org/packages/samjuk/m2-meta-security-patches)[ RSS](/packages/samjuk-m2-meta-security-patches/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (3)Versions (7)Used By (0)

Magento 2 / Adobe Commerce Meta Package: Security Patches
=========================================================

[](#magento-2--adobe-commerce-meta-package-security-patches)

[![Test on Master](https://github.com/SamJUK/m2-meta-security-patches/actions/workflows/test-master.yml/badge.svg)](https://github.com/SamJUK/m2-meta-security-patches/actions/workflows/test-master.yml)

This repository contains a Composer meta package for applying security patches to Magento 2 / Adobe Commerce installations. The package aggregates Adobe's isolated security patches and emergency out-of-band patches, protecting your store against known vulnerabilities and CVEs without manual patch hunting.

> **Scope:** Community Edition (CE) only. EE/B2B is not currently supported — see [Isolated Security Patches](#isolated-security-patches) below.

The primary reason for using a meta package is to simplify the management and application of multiple security patches. Instead of applying each patch individually to each project, you can install this meta package, which will automatically include all the necessary patches.

Future updates can be handled automatically via Dependabot or Renovate, ensuring that your Magento 2 / Adobe Commerce installation stays up-to-date with the latest security fixes without the manual overhead and cost.

Requirements
------------

[](#requirements)

- Magento 2.4.2+ (see [test-matrix.json](test-matrix.json) for full compatibility)
- PHP 7.4+ (version depends on Magento version)
- Composer 2.x

List of Included Security Patches
---------------------------------

[](#list-of-included-security-patches)

We break down the included security patches into a few groups:

### Isolated Security Patches

[](#isolated-security-patches)

These are the new approach to regular security updates provided by Adobe.

Isolated patches are **non-cumulative and must be applied in sequence**. Each monthly patch is built against, and will only apply to, the **latest patch release** of its line at the time it was issued (e.g. `2026-07-001` for the `2.4.8` line only applies to `2.4.8-p5`, not `p4` or earlier). If you're behind on patch levels, catch up first — the patch won't apply otherwise.

- **2026-07-001 (CE)** - Adobe Commerce monthly isolated security release, July 2026. CE-only; EE/B2B variants not currently included in this package.

For detailed information on each patch, see the patches in [src/patches/isolated/](src/patches/isolated/).

### Emergency Security Patches

[](#emergency-security-patches)

These patches address critical vulnerabilities out of band security issues that require immediate attention:

- **CVE-2024-34102** - CosmicSting vulnerability affecting Magento 2.4.7 and earlier
- **CVE-2025-54236** - Session security vulnerability
- **APSB25-94** - Polyshell vulnerability affecting Magento 2.4.9-alpha2 and earlier

For detailed information on each patch, see the patches in [src/patches/emergency/](src/patches/emergency/).

Installation
------------

[](#installation)

To install the meta package, use Composer by running the following command in your Magento 2 root directory:

```
composer require samjuk/m2-meta-security-patches:">=2026.02.01"
```

The patches will be automatically applied during installation via [vaimo/composer-patches](https://github.com/vaimo/composer-patches).

### Restrict patch sources (recommended)

[](#restrict-patch-sources-recommended)

By default, `vaimo/composer-patches` allows **any** dependency to declare patches, which is a supply chain risk — a compromised or malicious package could silently patch your codebase. Restrict patching to only this meta package:

```
composer config --json "extra.patcher" '{"sources":{"packages":["samjuk/m2-meta-security-patches"]}}'
```

This writes the following to your root `composer.json` (merge manually if `extra.patcher` already has other config, since the command above overwrites the whole key):

```
{
    "extra": {
        "patcher": {
            "sources": {
                "packages": ["samjuk/m2-meta-security-patches"]
            }
        }
    }
}
```

Versioning
----------

[](#versioning)

The versioning of this meta package follows date based versioning to indicate the release date of the included patches. For example, a version `2024.10.15` indicates that the package was released on October 15, 2024.

Development
-----------

[](#development)

To contribute to the development of this meta package:

1. Clone the repository
2. Make your changes in the `src/` directory
3. Add or update patches in `src/patches/`
4. Update `src/composer.json` with patch configuration
5. Run tests locally with `sh tests/test.sh` (requires Docker)
6. Submit a pull request

Testing
-------

[](#testing)

### Automated Testing

[](#automated-testing)

Full E2E tests are run via GitHub Actions:

- **On master/main commits**: Tests run automatically on every push
- **On pull requests**: Add the `run-tests` label to trigger the test suite

The test suite validates the package installation across multiple Magento versions and PHP versions (see [test-matrix.json](tests/test-matrix.json) for the complete matrix).

### Local Testing

[](#local-testing)

You can run the full test suite locally with Docker:

```
sh tests/test.sh
```

This will test the package installation across all supported Magento/PHP version combinations. Be aware, this can take a significant amount of disk space and time.

Contributing
------------

[](#contributing)

1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Ensure tests pass locally
5. Submit a pull request

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance93

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~41 days

Total

5

Last Release

36d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ee0b9faa791ec1a3b567e5e3668340aa9954c5f44ed536956d56ea3593584?d=identicon)[SamJUK](/maintainers/SamJUK)

---

Top Contributors

[![SamJUK](https://avatars.githubusercontent.com/u/7872420?v=4)](https://github.com/SamJUK "SamJUK (15 commits)")

---

Tags

adobe-commercecomposer-packagemagentomagento-security-patchesmagento2magento2-modulephpsecurity-patchvulnerability-managementcomposersecuritymagento2cvepatches

### Embed Badge

![Health badge](/badges/samjuk-m2-meta-security-patches/health.svg)

```
[![Health](https://phpackages.com/badges/samjuk-m2-meta-security-patches/health.svg)](https://phpackages.com/packages/samjuk-m2-meta-security-patches)
```

###  Alternatives

[jorijn/laravel-security-checker

Added Laravel functionality to the Enlightn Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

2031.9M1](/packages/jorijn-laravel-security-checker)[bringyourownideas/silverstripe-maintenance

Toolset to help with the day by day maintenance work.

32226.2k5](/packages/bringyourownideas-silverstripe-maintenance)[bringyourownideas/silverstripe-composer-security-checker

Provides information if your SilverStripe application uses dependencies with known vulnerabilities.

11104.0k2](/packages/bringyourownideas-silverstripe-composer-security-checker)[padosoft/laravel-composer-security

Security checker for composer.lock.

324.1k](/packages/padosoft-laravel-composer-security)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
