CVE-2024-51434: Froala WYSIWYG editor XSS in tag parsing

CVE-2024-51434 · Severity: low · CVSS 3.1 · Published 2024-11-08

Froala WYSIWYG editor is a JavaScript-based content editor used in web applications to allow users to create and format HTML content. An inconsistent tag parsing flaw allows attackers to inject malicious scripts that execute in a user's browser when they interact with specially crafted HTML content, potentially compromising user data and enabling account takeover.

Technologies: froala-editor (npm), froala/wysiwyg-editor (Packagist). Vendors: Froala, npm, Packagist.

Quick answers

Is CVE-2024-51434 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-51434 being exploited in the wild.
How severe is CVE-2024-51434?
Low severity, with a CVSS score of 3.1, published 8 November 2024.
Which products and versions are affected?
Froala WYSIWYG Editor 4.3.0 and earlier (npm: froala-editor all versions up to 4.3.0; Composer: froala/wysiwyg-editor v2.x, v3.x, v4.x up to v4.3.0); froala-editor (npm) SEMVER:introduced=0,last_affected=4.3.0; froala/wysiwyg-editor (Packagist) ECOSYSTEM:introduced=0,last_affected=4.3.0.
Is there a fix for CVE-2024-51434?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2024-51434 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2024-51434?
Check whether you run Froala WYSIWYG Editor, froala-editor (npm) or froala/wysiwyg-editor (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability stems from inconsistent tag parsing in the Froala WYSIWYG editor that fails to properly sanitize HTML input, resulting in a reflected XSS (CWE-79). The root cause involves how the editor handles certain HTML tag structures, allowing attackers to bypass content filtering mechanisms. The attack vector is network-based and requires user interaction (UI:R)—specifically, a user must open or interact with content containing the malicious payload within the editor. No authentication is required. An attacker can inject arbitrary JavaScript that executes with the privileges of the victim's session, potentially stealing session tokens, modifying page content, or performing actions on behalf of the user. Patches are available in versions after 4.3.0.

Affected products

  • Froala WYSIWYG Editor 4.3.0 and earlier (npm: froala-editor all versions up to 4.3.0; Composer: froala/wysiwyg-editor v2.x, v3.x, v4.x up to v4.3.0)

Identifiers

  • CVE-2024-51434
  • GHSA-549p-5c7f-c5p4

Timeline

  • 2024-11-07: disclosed: NVD publication date
  • 2024-11-08: advisory: GHSA-549p-5c7f-c5p4 published
  • 2025-03-14: other: Advisory last modified/reviewed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.