GHSA-2vh3-cj9j-mcj5: Ezsystems/ezpublish legacy Cross-Site Scripting Vulnerability
MODERATEGHSA-2vh3-cj9j-mcj5 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ezsystems/ezpublish legacy libraries in the Packagist ecosystem. The issue involves ez publish legacy cross-site scripting (xss) in 'disabled module' error template. Remediation is available by upgrading affected packages to version 2018.9.1.2, 2018.6.1.3, 2017.12.4.2, 5.4.12.2, 5.3.12.5.
GHSA-2vh3-cj9j-mcj5 at a Glance
How to Fix GHSA-2vh3-cj9j-mcj5
To remediate this vulnerability, upgrade all affected Ezsystems/ezpublish legacy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade ezsystems/ezpublish-legacy to 2018.9.1.2
Upgrade ezsystems/ezpublish-legacy to 2018.6.1.3
Upgrade ezsystems/ezpublish-legacy to 2017.12.4.2
Upgrade ezsystems/ezpublish-legacy to 5.4.12.2
Upgrade ezsystems/ezpublish-legacy to 5.3.12.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ezsystems/ezpublish-legacy
How to Check if You Are Affected
To determine whether your application is affected by GHSA-2vh3-cj9j-mcj5, inspect your project dependencies for Ezsystems/ezpublish legacy:
inspect dependencies for ezsystems/ezpublish-legacy
Analyze the terminal output to locate any version of Ezsystems/ezpublish legacy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2018.9.1.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Ezsystems/ezpublish legacy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-2vh3-cj9j-mcj5 Affected Ezsystems/ezpublish legacy Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ezsystems/ezpublish-legacy
|
Packagist |
≥ 2018.9.0
< 2018.9.1.2
|
2018.9.1.2
|
|
ezsystems/ezpublish-legacy
|
Packagist |
≥ 2018.6.0
< 2018.6.1.3
|
2018.6.1.3
|
|
ezsystems/ezpublish-legacy
|
Packagist |
≥ 2011.0.0
< 2017.12.4.2
|
2017.12.4.2
|
|
ezsystems/ezpublish-legacy
|
Packagist |
≥ 5.4.0
< 5.4.12.2
|
5.4.12.2
|
|
ezsystems/ezpublish-legacy
|
Packagist |
≥ 5.3.0
< 5.3.12.5
|
5.3.12.5
|
References
Frequently Asked Questions
What is GHSA-2vh3-cj9j-mcj5?
Which Ezsystems/ezpublish legacy versions are affected?
What version fixes GHSA-2vh3-cj9j-mcj5?
Is ezsystems/ezpublish-legacy affected?
What CWE is associated with GHSA-2vh3-cj9j-mcj5?
How can I check Packagist dependencies for GHSA-2vh3-cj9j-mcj5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2vh3-cj9j-mcj5",
"modified" : "2024-05-15T21:29:15Z",
"published" : "2024-05-15T21:29:15Z",
"aliases" : [ ],
"summary" : "eZ Publish Legacy Cross-site Scripting (XSS) in 'disabled module' error template",
"details" : "This security advisory fixes a vulnerability in eZ Publish Legacy, and we recommend that you install it as soon as possible if you are using Legacy via the LegacyBridge.\n\nInstallations where all modules are disabled may be vulnerable to XSS injection in the module name. This is a rare configuration, but we still recommend installing the update, which adds the necessary input washing.\n\nTo install, use Composer to update to one of the \"Resolving versions\" mentioned above, or apply this patch manually:\nhttps://github.com/ezsystems/ezpublish-legacy/commit/4697bff700e8cf95d5847ea19dad3479a77b02d9",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezpublish-legacy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2018.9.0"
}, {
"fixed" : "2018.9.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezpublish-legacy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2018.6.0"
}, {
"fixed" : "2018.6.1.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezpublish-legacy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2011.0.0"
}, {
"fixed" : "2017.12.4.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezpublish-legacy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.4.0"
}, {
"fixed" : "5.4.12.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezpublish-legacy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.3.0"
}, {
"fixed" : "5.3.12.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ezsystems/ezpublish-legacy/commit/4697bff700e8cf95d5847ea19dad3479a77b02d9"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/ezsystems/ezpublish-legacy/2018-11-01-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ezsystems/ezpublish-legacy"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210614172734/http://share.ez.no/community-project/security-advisories/ezsa-2018-006-xss-vulnerability-in-disabled-module-error-template"
}, {
"type" : "WEB",
"url" : "http://share.ez.no/community-project/security-advisories/ezsa-2018-006-xss-vulnerability-in-disabled-module-error-template"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T21:29:15Z",
"nvd_published_at" : null
}
}