GitHub Advisoryadvisory · Packagist

GHSA-mrvj-7q4f-5p42 Cross-site scripting in eZ Platform Kernel

HIGH Published 2021-03-19 Modified 2026-02-02 Official page ↗
Aliases
CVE-2021-46875
Ecosystem
Packagist
Packages
ezsystems/ezpublish-kernel, ezsystems/ezplatform-kernel
Severity
High
Weaknesses
CWE-79
Reviewed
2021-03-19

Affected packages

• Packagist ezsystems/ezpublish-kernel: < 6.13.8.2 → fixed in 6.13.8.2 • Packagist ezsystems/ezpublish-kernel: >= 7.0.0, < 7.5.15.2 → fixed in 7.5.15.2 • Packagist ezsystems/ezplatform-kernel: < 1.2.5.1 → fixed in 1.2.5.1 • Packagist ezsystems/ezplatform-kernel: >= 1.3.0, < 1.3.1.1 → fixed in 1.3.1.1

Description

Impact In 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. Patches The 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: https://github.com/ezsystems/ezplatform-kernel/blob/master/eZ/Bundle/EzPublishCoreBundle/Resources/config/default_settings.yml#L109 Important note You 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.

Related

Alias · CVE (1)

  • CVE-2021-46875 An issue was discovered in eZ Platform Ibexa Kernel before 1.3.1.1. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References