CVE-2021-24822 Stylish Cost Calculator < 7.04 - Subscriber+ Unauthorised AJAX Calls to Stored XSS

Medium 5.4 Published Updated

Authenticated users can trigger stored XSS via unsecured AJAX calls, potentially compromising admin sessions and frontend users.

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

What is CVE-2021-24822?

CVE-2021-24822 is a medium-severity cross-site scripting vulnerability in Unknown Stylish Cost Calculator, published on 29 Nov 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 Stylish Cost Calculator WordPress plugin before 7.0.4 does not have any authorisation and CSRF checks on some of its AJAX actions (available to authenticated users), which could allow any authenticated users, such as subscriber to call them, and perform Stored Cross-Site Scripting attacks against logged in admin, as well as frontend users due to the lack of sanitisation and escaping in some parameters

Weakness: CWE-79, CWE-352

Which versions are affected by CVE-2021-24822?

It affects 1 product.

Products include Stylishcostcalculator Stylish Cost Calculator.

How do I fix CVE-2021-24822?

No fix has been published for CVE-2021-24822 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-24822 being exploited?

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

Sources

Also known as GHSA-wjf7-gjcp-9frw.

Is CVE-2021-24822 in your software?

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

Check your SBOMs for free