React-styleguidist: High Severity Security Vulnerability: markdown-to-jsx

Created on 20 May 2020  路  4Comments  路  Source: styleguidist/react-styleguidist

There is currently a high severity security vulnerability in the markdown-to-jsx package used by Styleguidist.

https://npmjs.com/advisories/1219

All versions of simple-markdown are vulnerable to Cross-Site Scripting. Due to insufficient input sanitization the package may render output containing malicious JavaScript. This vulnerability can be exploited through input of links containing data or VBScript URIs and a base64-encoded payload.

This vulnerability is now preventing our company from using Styleguidist to document components, as we run npm audit to ensure that our codebase is secure.

bug help wanted

Most helpful comment

It appears that this has been resolved: https://github.com/probablyup/markdown-to-jsx/issues/306#issuecomment-633737154 and the package maintainers are just waiting on npm to approve that the vulnerability has been patched.

I've opened a PR to update the markdown-to-jsx version here: https://github.com/styleguidist/react-styleguidist/pull/1599

All 4 comments

Yes. We do have same problem and vulnerable packages are not allowed as per company policy.

image

Feel free to send a pull request with a fix.

It appears that this has been resolved: https://github.com/probablyup/markdown-to-jsx/issues/306#issuecomment-633737154 and the package maintainers are just waiting on npm to approve that the vulnerability has been patched.

I've opened a PR to update the markdown-to-jsx version here: https://github.com/styleguidist/react-styleguidist/pull/1599

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stcherenkov picture stcherenkov  路  3Comments

lyz810 picture lyz810  路  3Comments

okonet picture okonet  路  3Comments

davidjb picture davidjb  路  3Comments

crobinson42 picture crobinson42  路  3Comments