CVE-2021-46875
JSON

6.1medium

Cross-site scripting in eZ Platform Kernel

Severity
6.1medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.40% (higher than 36% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-mrvj-7q4f-5p42

Description

An issue was discovered in eZ Platform Ibexa Kernel before 1.3.1.1. An XSS attack can occur because JavaScript code can be uploaded in a .html or .js file.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
ezsystems/ezpublish-kernel (Packagist)before 6.13.8.2, from 7.0.0 before 7.5.15.2GitHub Advisory Database
ezsystems/ezplatform-kernel (Packagist)before 1.2.5.1, from 1.3.0 before 1.3.1.1GitHub Advisory Database
ibexa ez_platform_kernelfrom 1.2.0 before 1.2.5.1, from 1.3.0 before 1.3.1.1, from 6.13.0 before 6.13.8.2, from 7.5.0 before 7.5.15.2NVD

All scores

CISA-ADP6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHubhigh rating
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

An issue was discovered in eZ Platform Ibexa Kernel before 1.3.1.1. An XSS attack can occur because JavaScript code can be uploaded in a .html or .js file.

GitHub Advisory Database
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.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-46875 changed 2025-03-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-mrvj-7q4f-5p42 changed 2026-05-04CC-BY-4.0
NVDCVE-2021-46875 changed 2026-06-17Public domain