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

[Bug]: CVE-2024-21538 jest using a vulnerable library [email protected] #15388

Open
AlexeyS-eng opened this issue Nov 22, 2024 · 2 comments
Open

Comments

@AlexeyS-eng
Copy link

AlexeyS-eng commented Nov 22, 2024

Version

29.7.0

Steps to reproduce

Installing latest jest version introduces high vulnerability (8.7) CVE-2024-21538

Expected behavior

Vulnerability score from high to below high threshold

Actual behavior

Vulnerability scan not passing in the CICD pipeline.

Additional context

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.

npm list cross-spawn:
└─┬ [email protected]
└─┬ @jest/[email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]

Environment

System:
    OS: macOS 15.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 20.18.0 - ~/.nvm/versions/node/v20.18.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v20.18.0/bin/npm
  npmPackages:
    jest: ^29.6.4 => 29.7.0
@ibakirov
Copy link

This bug is duplicate for #15379

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Dec 24, 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

2 participants