CVE-2021-24535 Light Messages <= 1.0 - CSRF to Stored XSS

Medium 6.1 Published Updated

An attacker can trick an admin into updating settings to inject a stored XSS payload, potentially leading to code execution or account takeover.

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
None listed

What is CVE-2021-24535?

CVE-2021-24535 is a medium-severity cross-site scripting vulnerability in Unknown Light Messages, published on 16 Aug 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 Light Messages WordPress plugin through 1.0 is lacking CSRF check when updating it's settings, and is not sanitising its Message Content in them (even with the unfiltered_html disallowed). As a result, an attacker could make a logged in admin update the settings to arbitrary values, and set a Cross-Site Scripting payload in the Message Content. Depending on the options set, the XSS payload can be triggered either in the backend only (in the plugin's settings), or both frontend and backend.

Weakness: CWE-79, CWE-352

Which versions are affected by CVE-2021-24535?

It affects 1 product.

Products include Light Messages Project Light Messages.

How do I fix CVE-2021-24535?

No fix has been published for CVE-2021-24535 yet. Limit exposure of the affected software until one is available.

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-24535 being exploited?

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

Sources

Also known as GHSA-6g8x-82fh-m598.

Is CVE-2021-24535 in your software?

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

Check your SBOMs for free