Label

Security issues in GrapesJS

12 questions in the GrapesJS community archive, 5 community-vetted. Sorted by most discussed โ€” see real fixes, errors and code references.

#5743March 11, 2024by davidgabrichidzeโœ“ Solved ยท 45

XSS vulnerability in iframe attribute src

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Edge v122 Reproducible demo link https://jsfiddle.net/bwreyq29/1/ Describe the bug How to reproduce the bug? open this link https://jsfiddle.n...

#4411June 27, 2022by zgeistโœ“ Solved ยท 42

XSS when add class name to Selector Manager

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v102 Reproducible demo link https://jsfiddle.net/szLp8h4n Describe the bug How to reproduce the bug?Select any componentAdd class name...

#4076January 17, 2022by diemkay๐Ÿ’ฌ 4 answers0

XSS vulnerability via component attributes

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 97.0.4692.71 Reproducible demo link https://jsfiddle.net/ovrz5ug2/4/ Describe the bug Hi - we ran across this XSS vulnerability while u...

#3596July 6, 2021by aimeos๐Ÿ’ฌ 4 answers0

Values are not escaped

GrapesJS code is open to XSS issues because values are inserted into DOM without escaping, e.g. https://github.com/artf/grapesjs/blob/dev/src/assetmanager/view/AssetImageView.js#L30 If model.getFilename() returns <img src=x onerror=alert(d...

#3558June 22, 2021by aimeosโœ“ Solved ยท 42

FEAT: Support Content-Security-Policy

To reduce the possible attack surface if the editor is used in "hostile" environments (e.g. in SaaS platforms) support for CSP is required. This will also prevent problems like https://github.com/artf/grapesjs/issues/3082 At the moment, th...

#3481May 25, 2021by zgeistโœ“ Solved ยท 44

Update underscore lib to 1.13.*

Current version have security issue Might be update to newest version

#3443May 7, 2021by chilled-capybara๐Ÿ’ฌ 4 answers0

backbone-undo/underscore security advisory

Version: v0.17.3 Are you able to reproduce the bug from the demo?[x] Yes[ ] No What is the expected behavior? See below What is the current behavior? There is a known security vulnerability in one of the versions of underscore used by a ne...

#6723March 5, 2026by tiburciomztโœ“ Solved ยท 22

Dependency: grapesjs >=0.21.13 Depends on vulnerable versions of underscore

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Edge, mozilla Reproducible demo link NA Describe the bug underscore <=1.13.7 Severity: high underscore <=1.13.7 Severity: high Underscore has...

#6690January 16, 2026by HavokInspiration๐Ÿ’ฌ 1 answers0

CSP violations

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 143.0.7499.193 Reproducible demo link https://grapesjs.com/demo.html Describe the bug Hello. How to reproduce the bug? Import GrapeJS i...

View all 12 Security issues โ†’