Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
fix(html pipe): Sanitize generated markdown to avoid XSS attacks
Browse files Browse the repository at this point in the history
Properly escape the initial markdown and custom matchers to avoid potential XSS attacks via JS
injection, and also avoid DOM clubbering

fix #253
  • Loading branch information
ramboz committed May 28, 2019
1 parent 65430d4 commit e2d7963
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/mdast-to-vdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const { JSDOM } = require('jsdom');
const HeadingHandler = require('./heading-handler');
const sanitize = require('./sanitize-hast');
const HeadingHandler = require('./heading-handler');
const sanitize = require('./sanitize-hast');
const image = require('./image-handler');
const embed = require('./embed-handler');
const link = require('./link-handler');
Expand Down

0 comments on commit e2d7963

Please sign in to comment.