Skip to content

Commit 330ad1b

Browse files
authored
Merge pull request #1 from wubinworks/extend-compatibility
Extended compatibility to Magento 2.3
2 parents 05857dc + 32e7cfb commit 330ad1b

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
When the `SAPI` is `php-fpm`, `\Magento\Framework\Xml\Security` cannot detect entity if the XML string is not encoded in `UTF-8`.
88
This is a potential security issue and many developers forget to detect the XML encoding before using this class.
99

10-
_Note: this class works correctly in CLI._
10+
_Note: the above class works correctly in CLI._
11+
12+
##### A note about [CVE-2024-2961](https://www.cve.org/CVERecord?id=CVE-2024-2961)
13+
14+
_XML string with `encoding="ISO-2022-CN-EXT"` won't cause the buffer overflow. So we don't forbid this encoding._
1115

1216
## Features
1317

@@ -22,6 +26,7 @@ That's it.
2226

2327
## Requirements
2428

29+
Magento 2.3
2530
Magento 2.4
2631

2732
## Installation

composer.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,23 @@
1212
"xml security",
1313
"enhancement",
1414
"encoding",
15-
"php-fpm"
15+
"php-fpm",
16+
"cosmic sting",
17+
"cosmicsting",
18+
"cve-2024-34102"
1619
],
1720
"homepage": "https://www.wubinworks.com",
1821
"support": {
1922
"issues": "https://github.com/wubinworks/magento2-enhanced-xml-security/issues",
2023
"chat": "https://www.wubinworks.com/contact"
2124
},
2225
"require": {
23-
"php": ">=7.3",
24-
"laminas/laminas-xml": "^1.4",
25-
"magento/magento2-base": "~2.4.0"
26+
"php": ">=7.1",
27+
"laminas/laminas-xml": "^1.2",
28+
"magento/magento2-base": "~2.3.0 || ~2.4.0"
2629
},
2730
"type": "magento2-module",
28-
"version": "1.0.0",
31+
"version": "1.0.1",
2932
"license": "OSL-3.0",
3033
"authors": [
3134
{

0 commit comments

Comments
 (0)