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 potential ReDoS (#37) #47

Closed
wants to merge 1 commit into from
Closed

Conversation

MylesBorins
Copy link

This is a backport of 8d1d7cd

the test suite on the 3.0.0 branch is broken but I've manually verified
that no additional tests are broken and that this patch fixes the REDOS

This is a backport of chalk@8d1d7cd

the test suite on the 3.0.0 branch is broken but I've manually verified
that no additional tests are broken and that this patch fixes the REDOS
@MylesBorins
Copy link
Author

MylesBorins commented Nov 3, 2021

As this is targeting a "non-existent" branch built on top of v3.0.0 you will need to create a new branch to target this PR. This can be easily done via

git checkout v3.0.0 -b backport/v3

@Qix-
Copy link
Member

Qix- commented Nov 3, 2021

Please see #46 (comment) - multiple PRs are not necessary, I'm able to run git cherry-pick and resolve any issues if needed 😅 I appreciate the initiative, though.

@Qix- Qix- closed this Nov 3, 2021
@MylesBorins
Copy link
Author

@Qix- the commit does not land cleanly of v3 and require me to manually backport hence two PRS

@MylesBorins
Copy link
Author

@Qix- thanks again for landing this on the v4.x branch. Would you be open to willing to land this and cut a new version of v3.x as well? fwiw the npm CLI itself is affected by this one

@MylesBorins
Copy link
Author

PR to update the GHSA github/advisory-database#160

@MylesBorins
Copy link
Author

Looks like NIST has also updated the CVE, received an email from them today. The data looks a bit weird but I'll wait 24 hours for it to fully propagate. Assuming it updates correctly there should be no more automated warning about ansi-regex anymore from any tools 🎉

https://nvd.nist.gov/vuln/detail/CVE-2021-3807#match-7770592

@Qix-
Copy link
Member

Qix- commented Mar 30, 2022

Thanks again @MylesBorins! Very much appreciated :)

@MylesBorins
Copy link
Author

team work 🥳

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.

None yet

2 participants