CVE-2021-42360 Starter Templates — Elementor, Gutenberg & Beaver Builder Templates <= 2.7.0 Authenticated Block Import to Stored XSS

High 7.6 Published Updated

Authenticated users can inject malicious JavaScript into Elementor pages via block import, leading to stored XSS and potential site compromise.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-42360?

CVE-2021-42360 is a high-severity cross-site scripting vulnerability in BrainStormForce Starter Templates — Elementor, Gutenberg & Beaver Builder Templates, published on 17 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

On sites that also had the Elementor plugin for WordPress installed, it was possible for users with the edit_posts capability, which includes Contributor-level users, to import blocks onto any page using the astra-page-elementor-batch-process AJAX action. An attacker could craft and host a block containing malicious JavaScript on a server they controlled, and then use it to overwrite any post or page by sending an AJAX request with the action set to astra-page-elementor-batch-process and the url parameter pointed to their remotely-hosted malicious block, as well as an id parameter containing the post or page to overwrite. Any post or page that had been built with Elementor, including published pages, could be overwritten by the imported block, and the malicious JavaScript in the imported block would then be executed in the browser of any visitors to that page.

Weakness: CWE-99, CWE-79, CWE-284

Which versions are affected by CVE-2021-42360?

It affects 1 product.

Products include Brainstormforce Starter Templates.

How do I fix CVE-2021-42360?

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

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

Sources

Also known as GHSA-w3jq-67c5-3rfj.

Is CVE-2021-42360 in your software?

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

Check your SBOMs for free