Race Condition Affecting grunt package, versions <1.5.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-GRUNT-2813632
  • published11 May 2022
  • disclosed11 May 2022
  • credithaxatron

Introduced: 11 May 2022

CVE-2022-1537  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade grunt to version 1.5.3 or higher.

Overview

grunt is a JavaScript task runner.

Affected versions of this package are vulnerable to Race Condition via the file.copy operations. Exploiting this vulnerability leads to arbitrary file writing when an attacker can create a symlink just after deletion of the destination symlink, but right before the symlink is being written.

CVSS Scores

version 3.1