VDB
Sign up
MEDIUM6.1

GHSA-qrfj-mgw8-j9c6

@platejs/core HTML deserialization can trigger browser behavior during parsing

Quick fix

GHSA-qrfj-mgw8-j9c6 — @platejs/core: upgrade to the fixed version with the command below.

npm install @platejs/core@53.3.11

Details

### Summary

HTML strings passed to Plate's core deserialization APIs were parsed in the active document. Certain HTML attributes could therefore trigger browser behavior during parsing, before the content was converted into editor nodes.

Applications that deserialize HTML from untrusted or cross-user sources may be affected.

### Impact

An attacker who can control HTML later deserialized in another user's browser may be able to execute script in that application's origin.

### Remediation

Upgrade to `@platejs/core` 53.3.11 or later. Users of the discontinued 54.0.0 beta builds should install the fixed stable line. Applications should also sanitize untrusted HTML before rendering it; inert parsing is not a substitute for sanitization.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@platejs/core
Introduced in: 0Fixed in: 53.3.11
Fixnpm install @platejs/core@53.3.11
npm/@platejs/core
Introduced in: 54.0.0-beta.0

No fixed version published yet for @platejs/core (npm). Pin to a known-safe version or switch to an alternative.

References