samjuk/m2-meta-security-patches
Composer 安装命令:
composer require samjuk/m2-meta-security-patches
包简介
Meta package to apply all the new isolated security and emergency patches for Magento 2
README 文档
README
This repository contains a meta package for applying security patches to Magento 2 installations. The package aggregates various security patches including Adobe's new isolated patches, and emergency out of band patches to ensure that your Magento 2 store remains secure against known vulnerabilities.
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 installation stays up-to-date with the latest security fixes without the manual overhead and cost.
Requirements
- Magento 2.4.2+ (see test-matrix.json for full compatibility)
- PHP 7.4+ (version depends on Magento version)
- Composer 2.x
List of Included Security Patches
We break down the included security patches into a few groups:
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/.
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/.
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.
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
To contribute to the development of this meta package:
- Clone the repository
- Make your changes in the
src/directory - Add or update patches in
src/patches/ - Update
src/composer.jsonwith patch configuration - Run tests locally with
sh tests/test.sh(requires Docker) - Submit a pull request
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-testslabel to trigger the test suite
The test suite validates the package installation across multiple Magento versions and PHP versions (see test-matrix.json for the complete matrix).
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
- Fork the repository
- Create a feature branch
- Make your changes
- Ensure tests pass locally
- Submit a pull request
samjuk/m2-meta-security-patches 适用场景与选型建议
samjuk/m2-meta-security-patches 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 96 次下载、GitHub Stars 达 6, 最近一次更新时间为 2026 年 02 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「security」 「composer」 「patches」 「magento2」 「cve」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 samjuk/m2-meta-security-patches 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 samjuk/m2-meta-security-patches 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 samjuk/m2-meta-security-patches 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Composer patches plugin
Automated project updates for CodeIgniter 4
List of needed patches for Varbase used packages with Composer Patches.
Patches for core Magento2
Provide a way to secure accesses to all routes of an symfony application.
It's a barebone security class written on PHP
统计信息
- 总下载量: 96
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 34
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-02-01