CVE-2021-31778 Cross-site scripting in media2click
A backend user can inject malicious scripts via the media2click extension, potentially leading to code execution in the TYPO3 CMS.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-31778?
CVE-2021-31778 is a medium-severity cross-site scripting vulnerability in n/a, published on 28 Apr 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The media2click (aka 2 Clicks for External Media) extension 1.x before 1.3.3 for TYPO3 allows XSS by a backend user account.
Weakness: CWE-79
Which versions are affected by CVE-2021-31778?
2 open source packages ship an affected version, including amazing/media2click. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
amazing/media2click Packagist | From 1.0.0 | 1.3.3 |
amazing/media2click Packagist | From 1.0.0 | 1.3.3 |
Products include Media2click Project Media2click.
How do I fix CVE-2021-31778?
Upgrade amazing/media2click to 1.3.3 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-31778 being exploited?
There is no known exploitation of CVE-2021-31778 in the wild and no public exploit code.
Sources
Also known as GHSA-xpxm-pf7g-2534.