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

CVE-2024-21538: dependency child-process-promise relies on a version of cross-spawn that is not secure #4657

Open
1 task done
mikejurka opened this issue Dec 13, 2024 · 0 comments

Comments

@mikejurka
Copy link

mikejurka commented Dec 13, 2024

What happened?

I got this notification from Github's dependabot:
CVE-2024-21538
detox@20.25.5 requires cross-spawn@^4.0.2 via child-process-promise@2.2.1

= 7.0.0, < 7.0.5
7.0.5
Versions of the package cross-spawn before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.

What was the expected behaviour?

I expect that the version of cross-spawn depended on is 7.05 or newer

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version:
React Native version:
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version:
Test-runner (select one): jest / other

Detox logs

Detox logs
paste logs here!

Device logs

Device logs
paste logs here!

More data, please!

No response

@mikejurka mikejurka changed the title CVE: dependency child-process-promise relies on a version of cross-spawn that is not secure CVE-2024-21538: dependency child-process-promise relies on a version of cross-spawn that is not secure Dec 13, 2024
matinzd pushed a commit to matinzd/Detox that referenced this issue Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant