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

fix: replace ansi-html with ansi-html-community #501

Merged
merged 1 commit into from
Sep 11, 2021

Conversation

rap2hpoutre
Copy link
Contributor

This fixes the ReDoS vulnerability CVE-2021-23424.

See: Tjatse/ansi-html#19 (comment)

@pmmmwh
Copy link
Owner

pmmmwh commented Sep 7, 2021

I'll wait a bit on this one.

Given that our use case directly consumes errors from Webpack's stats, the risk of hitting a ReDoS is low. I do notice that ansi-html is not really maintained anymore, so we might swap to other alternatives/do something ourselves instead in the long run.

Copy link

@boppaaronPFG boppaaronPFG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same fix that was implemented for webpack-dev-server.

@rap2hpoutre
Copy link
Contributor Author

@pmmmwh Thank you for your answer. Since webpack-dev-server have patched it with the same community library, I guess we could try to rely on it too: https://github.com/webpack/webpack-dev-server/releases/tag/v4.1.1. It could be considered a temporary fix though.

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.

3 participants