Skip to content

Conversation

@rpokorny
Copy link

@rpokorny rpokorny commented Jan 4, 2021

commonmark 0.27.0 has a denial-of-service vulnerability in the form of some inefficient parsing that takes quadratic time, as documented here: commonmark/commonmark.js#172

This was fixed in commonmark 0.29.1, so this PR upgrades to that version. Running the tests locally they pass without further changes.

At the moment, this PR should be considered a work in progress as it has an installation warning due to the new version of commonmark not matching the peerDependencies spec of commonmark-react-renderer. I have opened a PR in that project as well that should fix that issue, and this PR is dependent on that one: rexxars/commonmark-react-renderer#42 .

@rpokorny
Copy link
Author

rpokorny commented Jan 4, 2021

Just noticed that this repo uses yarn, while I was installing with npm. I'll update the PR shortly.

Edit: done

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

Successfully merging this pull request may close these issues.

1 participant