-
-
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
Create a c3.11.3 to resolve vulnerability in dependency ansi-html #3929
Comments
webpack-dev-server v3 is outdated and don't accept updates, there are other security problems, please ask angular team to update dev server, updating |
@alexander-akait I understand that position and generally agree that updating is the ideal way to go however Additionally, the While I understand the actual vulnerability is not critical, it's still something that is visible to all forms of people (e.g pentesters, govt heads of security) that tend to require us to fill out long reports, give justifications, and explain why something is or isn't a vulnerability (and typically this has to be done per client, each with their own slightly different and unique set of requirements) - so overall it's a lot easier for me if I can get it patched most of the time. I currently have two ways forward that I'd like to explore:
Both of these obviously require a level of interaction from their respective teams to review, merge, and release the PR which brings me to my question for you: if I was to try and come up with a patch for v3 of I would prefer doing a patch for |
@G-Rath got it, what I should review and merge? |
@alexander-akait I'll try and get PRs for you to review this week. I expect there to be two (since there are two vulnerabilities):
Thanks for being open to this ❤️ |
@alexander-akait actually looks like there's already a PR open for replacing |
Bug report
Users of Angular 11 and 12 are vulnerable to ReDoS because of the package (ansi-html) in 3.11.2. There is a fix which is being used in the later versions of webpack-dev-server which are not compatible for Angular 11/12. Instead of using ansi-html package, use ansi-html-community version 0.0.8.
Simple fix saving 1000s of customers from a potential attack.
[https://snyk.io/vuln/SNYK-JS-ANSIHTML-1296849]
Actual Behavior
vulnerable to ReDoS
Expected Behavior
no vulnerable packages
How Do We Reproduce?
{
"name": "webpack-dev-server",
"version": "3.11.2",
...
"dependencies": {
"ansi-html": "0.0.7",
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: