prosemirror-model@1.21.3 vulnerabilities

ProseMirror's document model

Direct Vulnerabilities

Known vulnerabilities in the prosemirror-model package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

prosemirror-model is a ProseMirror's document model

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to a node or mark serializer function that puts a value from an attribute directly in an array used to describe a DOM structure and not fully sanitize these attributes when they are read from JSON. A malicious actor can inject an attribute or a structure into the document via a tampered API request.

How to fix Cross-site Scripting (XSS)?

Upgrade prosemirror-model to version 1.22.1 or higher.

<1.22.1