CVE-2021-42112 Cross-site Scripting in Limesurvey
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.
| Package | Affected | Fixed in |
|---|---|---|
limesurvey/limesurvey Packagist | All versions | 3.27.19 |
limesurvey/limesurvey Packagist | All versions | 3.27.19 |
limesurvey Bitnami | From 3.0.0 | 3.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.
Other vulnerabilities in Limesurvey Limesurvey
Sources
Also known as BIT-limesurvey-2021-42112, GHSA-h9ph-jcgh-gf69.