CVE-2022-30110 Cross-site Scripting in Jirafeau

Medium 6.1 Published Updated

Attackers can execute arbitrary JavaScript in victims' browsers by uploading malicious SVG files to the default-enabled file preview feature.

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-2022-30110?

CVE-2022-30110 is a medium-severity cross-site scripting vulnerability in n/a, published on 17 May 2022. 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

The file preview functionality in Jirafeau < 4.4.0, which is enabled by default, could be exploited for cross site scripting. An attacker could upload image/svg+xml files containing JavaScript. When someone visits the File Preview URL for this file, the JavaScript inside of this image/svg+xml file will be executed in the users' browser.

Weakness: CWE-79

Which versions are affected by CVE-2022-30110?

2 open source packages ship an affected version, including mojo42/jirafeau. It affects 1 product.

PackageAffectedFixed in
mojo42/jirafeau PackagistAll versions4.4.0
mojo42/jirafeau PackagistAll versions4.4.0

Products include Jirafeau Jirafeau.

How do I fix CVE-2022-30110?

Upgrade mojo42/jirafeau to 4.4.0 or later.

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-2022-30110 being exploited?

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

Sources

Also known as GHSA-j2xf-p274-g8cc.

Is CVE-2022-30110 in your software?

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

Check your SBOMs for free