PT-2022-16015 · Editor.Js · Editor.Js

Bananabr

+5

·

Published

2022-12-15

·

Updated

2024-08-05

·

CVE-2022-23474

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Editor.js versions prior to 2.26.0
Description The issue concerns a code injection vulnerability via pasted input in Editor.js, a block-style editor. The processHTML method is vulnerable as it passes pasted input into the wrapper's innerHTML. This allows for potential code injection attacks.
Recommendations For versions prior to 2.26.0, update to version 2.26.0 to resolve the issue. As a temporary workaround, consider disabling the processHTML method until the patch is applied. Restrict access to pasted input to minimize the risk of exploitation.

Exploit

Fix

XSS

Code Injection

Weakness Enumeration

Related Identifiers

CVE-2022-23474
GHSA-6MVJ-2569-3MCM

Affected Products

Editor.Js