-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ReDoS Vulnerability #3576
Comments
Please open an issue in ansi-html in rc we use the latest version |
A ticket has been open for a while, but ansi-html is not being maintained. I'm asking if webpack will continue to use an unmaintained library which has a known vulnerability, or are there plans to replace it? |
We need replace |
having the same vulnerability. |
@alexander-akait 5 years no activity. I don't think that there is a good chance that it will be fixed... |
We can move logic inside our dev server and fix it, feel free to send a PR |
@alexander-akait I would love to but I don't have skills in this area :( I understand that the vulnerability is not important but strict compliance rules in the companies are pain in the ... |
Just copy necessary function and refactor them, it should be not hard |
Another way would be to use |
@ylemkimon feel free to send a PR, also I think it can be part of #3689 (we can improve our overlay in multiple PRs) |
Issue Tjatse/ansi-html#19 was fixed in version 0.0.8. Any chance webpack-dev-server can pick this up? |
@garcia323 PR welcome |
@garcia323 There is no 0.0.8 version. I don't think that PR will be merged: Tjatse/ansi-html#20 |
It looks like someone forked the project and created a 0.0.8 version that fixes the vulnerability at gebhardtr/ansi-html@7cb72a3 - so perhaps as per Tjatse/ansi-html#20 they might be able to update https://www.npmjs.com/package/ansi-html to point to the forked version and then folks here could bump the package.json to require 0.0.8 and above. Otherwise, folks here should probably find a way to move away from the abandoned and vulnerable package. |
EDIT: Since the maintainers of webpack-dev-server didn't like the necessary Apache 2.0 License in their codebase next to the copied code, I have opened yet another PR #3801, which instead uses the new fork |
I have faced the same problems how to |
Just update webpack-dev-server to a more recent version. This has been fixed for a few months now. |
For Bugs; How can we reproduce the behavior?
This is a vulnerability in ansi-html, which this package depends on. To repro, you can use the command below as described Tjatse/ansi-html#19.
require('ansi-html')('\x1b[0m\x1b[' + '0'.repeat(35))
Are there any plans to replace/remove this package, with a more active project? The library maintainers have been made aware of this change, but it does not look like it is being maintained. This is preventing us from moving our source code to Production, as ansi-html is being flagged.
The text was updated successfully, but these errors were encountered: