Skip to content

Commit

Permalink
fix: XSS vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Aug 21, 2023
1 parent 534fd85 commit 2967b3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mermaid/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const detectInit = function (

if (Array.isArray(inits)) {
const args = inits.map((init) => init.args);
sanitizeDirective(args);
results = assignWithDepth(results, [...args]);
} else {
results = inits.args;
Expand Down

0 comments on commit 2967b3c

Please sign in to comment.