Advisory

GHSA-6mvj-2569-3mcm

Also known as: CVE-2022-23474

Summary

Editor.js vulnerable to Code Injection

Details

Editor.js is a block-style editor with clean JSON output. Versions prior to 2.26.0 are vulnerable to Code Injection via pasted input. The processHTML method passes pasted input into wrapper’s innerHTML. This issue is patched in version 2.26.0.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-08-05 21:18 UTC
Modified
2024-08-05 21:41 UTC

Affected packages and fixes

@editorjs/editorjs

npm · All systems

Affected

  • introduced 0, fixed 2.26.0 (semver)

Fixed versions

2.26.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences