Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-1537: file.copy operations in GruntJS are vulnerable to a TOCTOU race condition leading to arbitrary file write in G

35
Routine
HIGH 7.0UPGRADE

CVE-2022-1537 is a high-severity flaw (CVSS 7.0) affecting grunt. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

file.copy operations in GruntJS are vulnerable to a TOCTOU race condition leading to arbitrary file write in GitHub repository gruntjs/grunt prior to 1.5.3. This vulnerability is capable of arbitrary file writes which can lead to local privilege escalation to the GruntJS user if a lower-privileged user has write access to both source and destination directories as the lower-privileged user can create a symlink to the GruntJS user's .bashrc file o

Why this priority

  • High severity
  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score7.0 (High)
Attack vectorLocal
Attack complexityHigh
Privileges neededLow
User interactionNone
EPSS exploit chance0.3% (top 77%)
CISA exploited listNo
WeaknessCWE-367
Published2022-05-10
Last modified2026-06-17
Publisher (CNA): huntr.dev · Vendor: gruntjs

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

gruntjs grunt UPGRADE
Affected: < 1.5.3
Fixed in: 1.5.3
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls grunt
2. UPGRADE to 1.5.3
npm install grunt@">=1.5.3"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2022-1537?

grunt: upgrade to 1.5.3. Exact commands for each OS are on this page.

Is CVE-2022-1537 being exploited?

CVE-2022-1537 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2022-1537 affect?

CVE-2022-1537 affects grunt. Severity is high (CVSS 7.0). file.copy operations in GruntJS are vulnerable to a TOCTOU race condition leading to arbitrary file write in GitHub repository gruntjs/grunt prior to 1.5.3. This vulnerability is capable of arbitrary file writes which can lead to local priv

How urgent is CVE-2022-1537?

Priority 35/100. High severity; Public exploit reference

Software pages

GitHub vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.