CVE-2021-42360

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

State
Published
Severity
7.6 High
Published
Nov 17, 2021
Updated
Feb 14, 2025
Reserved
Oct 14, 2021

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.6 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:LWordfence

Weaknesses

  • CWE-284 Improper Access Control
  • CWE-79 Cross-site Scripting (XSS)
  • CWE-99 Improper Control of Resource Identifiers ('Resource Injection')

Affected Products

ProductVersions
Starter Templates — Elementor, Gutenberg & Beaver Builder TemplatesBrainStormForce
  • 2.7.0 through 2.7.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.