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

0.0.7 is Vulnerable #21

Closed
infa-mseelam opened this issue Sep 7, 2021 · 8 comments
Closed

0.0.7 is Vulnerable #21

infa-mseelam opened this issue Sep 7, 2021 · 8 comments

Comments

@infa-mseelam
Copy link

Recently github scan shows that version 0.0.7 is Vulnerable.

This affects all versions of package ansi-html. If an attacker provides a malicious string, it will get stuck processing the input for an extremely long time.

Any plans to fix the Vulnerability?

@ellisio
Copy link

ellisio commented Sep 7, 2021

Link to the actual advisory: GHSA-whgm-jr23-g3j9

@mahdyar
Copy link

mahdyar commented Sep 8, 2021

This package is not being maintained anymore(apparently), alternatively, you can use the fixed version: ansi-html-community.

@thediveo
Copy link

thediveo commented Oct 6, 2021

@mahdyar how in case of indirect dependencies?

@mahdyar
Copy link

mahdyar commented Oct 6, 2021

@mahdyar how in case of indirect dependencies?

If you're using yarn, there is a Selective dependency resolutions which @CoryDanielson explained here:
#19 (comment)

This doesn't seem to work with npm natively, however there is a package for it (I haven't tried it myself):
https://www.npmjs.com/package/npm-force-resolutions

@fuqua
Copy link

fuqua commented Oct 13, 2021

@mahdyar how in case of indirect dependencies?

You might also go to the repo for the dependency and see if they have an update pointing to the community version. I was able to fix by just updating webpack-hot-middleware.

@jdehorty
Copy link

@mahdyar how in case of indirect dependencies?

For indirect dependencies, to fix using npm-force-resolutions use the following:

https://stackoverflow.com/a/69591894/12649786

@thediveo
Copy link

Since this also is an issue with React-based applications where yarn is used: can you please document here how to handle the situation in case of yarn? Thank you very much!

@Tjatse
Copy link
Owner

Tjatse commented Mar 1, 2022

Hi @thediveo could you please try v0.0.9, just removed lodash from dev dependencies, and fixed the Regular Expression Denial of Service (ReDoS) in lodash

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

No branches or pull requests

7 participants