Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change markdown-it-katex plugin for something else, has xss #29

Closed
km2442 opened this issue Aug 5, 2020 · 4 comments
Closed

Change markdown-it-katex plugin for something else, has xss #29

km2442 opened this issue Aug 5, 2020 · 4 comments

Comments

@km2442
Copy link
Contributor

km2442 commented Aug 5, 2020

Hello, markdown-it-katex plugin has xss - https://www.npmjs.com/advisories/1466
As this plugin isn't maintained for a few years from now, could you please change it for another plugin? I doubt that the author will fix this high severity issue :(

@ravenq
Copy link
Owner

ravenq commented Sep 1, 2020

thanks for you issue! @km2442

I will try to find a new plugin to instead.

@jelmerveen
Copy link

jelmerveen commented Dec 7, 2020

There has been an update of Katex in September.

See: waylonflinn/markdown-it-katex#26
and: quasarframework/quasar-ui-qmarkdown#120

waylonflinn/markdown-it-katex#31

Might be worth using a fork of Katex?

@VincentPetitot
Copy link

Any news for this issue?
NPM reports this dependency as vulnerable:

Severity: high
Cross-Site Scripting - https://npmjs.com/advisories/1466
No fix available
node_modules/markdown-it-katex
  markdown-it-vue  *
  Depends on vulnerable versions of markdown-it-katex
  node_modules/markdown-it-vue

2 high severity vulnerabilities

@meatnordrink
Copy link

meatnordrink commented Apr 23, 2021

For anyone else hitting this issue, for whom the vulnerability is unacceptable -

On our project, we had to switch off this package for this reason, but just using markdown-it with v-html worked fine, i.e.,

import MarkdownIt from "markdown-it"
const md = new MarkdownIt({});
// in template -
<div v-html="md.render(myMarkdownContent)"></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants