CVE-2021-46875: Ezsystems/ezpublish kernel Cross-Site Scripting Vulnerability
HIGHCVE-2021-46875 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ezsystems/ezpublish kernel libraries in the Packagist ecosystem. The issue involves cross-site scripting in ez platform kernel. Remediation is available by upgrading affected packages to version 6.13.8.2, 7.5.15.2, 1.2.5.1, 1.3.1.1.
CVE-2021-46875 at a Glance
How to Fix CVE-2021-46875
To remediate this vulnerability, upgrade all affected Ezsystems/ezpublish kernel 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-kernel to 6.13.8.2
Upgrade ezsystems/ezpublish-kernel to 7.5.15.2
Upgrade ezsystems/ezplatform-kernel to 1.2.5.1
Upgrade ezsystems/ezplatform-kernel to 1.3.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ezsystems/ezpublish-kernel
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-46875, inspect your project dependencies for Ezsystems/ezpublish kernel:
inspect dependencies for ezsystems/ezpublish-kernel
Analyze the terminal output to locate any version of Ezsystems/ezpublish kernel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.13.8.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 kernel, 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
CVE-2021-46875 Affected Ezsystems/ezpublish kernel Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ezsystems/ezpublish-kernel
|
Packagist |
< 6.13.8.2
|
6.13.8.2
|
|
ezsystems/ezpublish-kernel
|
Packagist |
≥ 7.0.0
< 7.5.15.2
|
7.5.15.2
|
|
ezsystems/ezplatform-kernel
|
Packagist |
< 1.2.5.1
|
1.2.5.1
|
|
ezsystems/ezplatform-kernel
|
Packagist |
≥ 1.3.0
< 1.3.1.1
|
1.3.1.1
|
References
Frequently Asked Questions
What is CVE-2021-46875?
Which Ezsystems/ezpublish kernel versions are affected?
What version fixes CVE-2021-46875?
Is ezsystems/ezpublish-kernel affected?
Is ezsystems/ezplatform-kernel affected?
What CWE is associated with CVE-2021-46875?
How can I check Packagist dependencies for CVE-2021-46875?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mrvj-7q4f-5p42",
"modified" : "2026-02-02T19:55:39Z",
"published" : "2021-03-19T19:56:42Z",
"aliases" : [ "CVE-2021-46875" ],
"summary" : "Cross-site scripting in eZ Platform Kernel",
"details" : "### Impact\nIn file upload it is possible by certain means to upload files like .html and .js. These may contain XSS exploits which will be run when links to them are accessed by victims.\n\n### Patches\nThe fix consists simply of adding common types of scriptable file types to the configuration of the already existing filetype blacklist feature. See \"Patched versions\". As such, this can also be done manually, without installing the patched versions. This may be relevant if you are currently running a considerably older version of the kernel package and don't want to upgrade it at this time. Please see the settting \"ezsettings.default.io.file_storage.file_type_blacklist\" at:\nhttps://github.com/ezsystems/ezplatform-kernel/blob/master/eZ/Bundle/EzPublishCoreBundle/Resources/config/default_settings.yml#L109\n\n### Important note\nYou should adapt this setting to your needs. Do not add file types to the blacklist that you actually need to be able to upload. For instance, if you need your editors to be able to upload SVG files, then don't blacklist that. Instead, you could e.g. use an approval workflow for such content.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezpublish-kernel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.13.8.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.13.8.1"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezpublish-kernel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.5.15.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 7.5.15.1"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezplatform-kernel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.5.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.2.5"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezplatform-kernel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.0"
}, {
"fixed" : "1.3.1.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.3.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ezsystems/ezpublish-kernel/security/advisories/GHSA-mrvj-7q4f-5p42"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-46875"
}, {
"type" : "WEB",
"url" : "https://github.com/ezsystems/ezpublish-kernel/commit/29fecd2afe86f763510f10c02f14962d028f311b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ezsystems/ezpublish-kernel"
}, {
"type" : "WEB",
"url" : "https://packagist.org/packages/ezsystems/ezplatform-kernel#v1.2.5.1"
}, {
"type" : "WEB",
"url" : "https://packagist.org/packages/ezsystems/ezpublish-kernel#v7.5.15.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-03-19T19:56:16Z",
"nvd_published_at" : null
}
}