CVE-2021-46875 Cross-site scripting in eZ Platform Kernel

Medium 6.1 Published Updated

Attackers can execute arbitrary JavaScript by uploading malicious HTML or JS files, potentially compromising user sessions or data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-46875?

CVE-2021-46875 is a medium-severity cross-site scripting vulnerability in n/a, published on 12 Mar 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2021-46875?

8 open source packages ship an affected version, including ezsystems/ezplatform-kernel and ezsystems/ezpublish-kernel. It affects 1 product.

PackageAffectedFixed in
ezsystems/ezplatform-kernel PackagistAll versions1.2.5.1
ezsystems/ezplatform-kernel PackagistAll versions1.2.5.1
ezsystems/ezplatform-kernel PackagistFrom 1.3.01.3.1.1
ezsystems/ezplatform-kernel PackagistFrom 1.3.01.3.1.1
ezsystems/ezpublish-kernel PackagistAll versions6.13.8.2
ezsystems/ezpublish-kernel PackagistAll versions6.13.8.2
2 more packages
ezsystems/ezpublish-kernel PackagistFrom 7.0.07.5.15.2
ezsystems/ezpublish-kernel PackagistFrom 7.0.07.5.15.2

Products include Ibexa Ez Platform Kernel.

How do I fix CVE-2021-46875?

Upgrade ezsystems/ezplatform-kernel to a fixed version for your release line: 1.2.5.1 or 1.3.1.1.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-46875 being exploited?

There is no known exploitation of CVE-2021-46875 in the wild and no public exploit code.

Sources

Also known as GHSA-mrvj-7q4f-5p42.

Is CVE-2021-46875 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free