CVE-2021-42112 Cross-site Scripting in Limesurvey

Medium 6.1 Published Updated

Cross-site scripting in LimeSurvey's file upload feature allows attackers to execute arbitrary scripts in victim browsers.

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-42112?

CVE-2021-42112 is a medium-severity cross-site scripting vulnerability in Limesurvey Limesurvey, published on 8 Oct 2021. 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 upload question" functionality in LimeSurvey 3.x-LTS through 3.27.18 allows XSS in assets/scripts/modaldialog.js and assets/scripts/uploader.js.

Weakness: CWE-79

Which versions are affected by CVE-2021-42112?

3 open source packages ship an affected version, including limesurvey/limesurvey and limesurvey. It affects 1 product.

PackageAffectedFixed in
limesurvey/limesurvey PackagistAll versions3.27.19
limesurvey/limesurvey PackagistAll versions3.27.19
limesurvey BitnamiFrom 3.0.03.27.19

Products include Limesurvey Limesurvey.

How do I fix CVE-2021-42112?

Upgrade limesurvey/limesurvey to 3.27.19 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-2021-42112 being exploited?

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

All Limesurvey Limesurvey vulnerabilities

Sources

Also known as BIT-limesurvey-2021-42112, GHSA-h9ph-jcgh-gf69.

Is CVE-2021-42112 in your software?

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

Check your SBOMs for free