Skip to content

Commit

Permalink
All: Security: Disallow EMBED tags to prevent XSS vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Sep 6, 2020
1 parent fbe9669 commit 57d750b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactNativeClient/lib/joplin-renderer/htmlUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class HtmlUtils {
// that can break several plugins, such as Katex (which needs to load CSS
// files using a relative URL). For that reason it is disabled.
// More info: https://github.com/laurent22/joplin/issues/3021
const disallowedTags = ['script', 'iframe', 'frameset', 'frame', 'object', 'base'];
const disallowedTags = ['script', 'iframe', 'frameset', 'frame', 'object', 'base', 'embed'];

const parser = new htmlparser2.Parser({

Expand Down

0 comments on commit 57d750b

Please sign in to comment.