VDB
Sign up
MEDIUM5.4

GHSA-qcg2-h349-vwm3

Cross-site Scripting in React Draft Wysiwyg

Quick fix

GHSA-qcg2-h349-vwm3 — react-draft-wysiwyg: upgrade to the fixed version with the command below.

npm install react-draft-wysiwyg@1.14.6

Details

react-draft-wysiwyg (aka React Draft Wysiwyg) before 1.14.6 allows a `javascript:` URi in a Link Target of the link decorator in `decorators/Link/index.js` when a draft is shared across users, leading to XSS.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/react-draft-wysiwyg
Introduced in: 0Fixed in: 1.14.6
Fixnpm install react-draft-wysiwyg@1.14.6

References