# CVE-2022-0436: Grunt path traversal vulnerability

Source: https://junglewise.ai/threats/cve-2022-0436-grunt-path-traversal-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-04-13. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2022-0436 · Severity: low · CVSS 3.1 · Published 2022-04-13

Grunt is a JavaScript task automation tool used by developers to automate repetitive tasks in web projects. Versions prior to 1.5.2 contain a path traversal vulnerability that allows a local attacker with limited privileges to read sensitive files on the system with higher privileges. An attacker could exploit this to access confidential data or configuration files.

Technologies: [grunt (npm)](https://junglewise.ai/threats/technologies/grunt). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2022-0436 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-0436 being exploited in the wild.

**How severe is CVE-2022-0436?** Low severity, with a CVSS score of 3.1, published 13 April 2022.

**Which products and versions are affected?** grunt (npm) SEMVER:introduced=0,fixed=1.5.2.

**Is there a fix for CVE-2022-0436?** Yes. grunt (npm): upgrade to 1.5.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2022-0436 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2022-0436?** Check whether you run grunt (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- grunt (npm): upgrade to 1.5.2 or later

  ```sh
  npm install grunt@1.5.2
  ```


## Technical details

Grunt prior to version 1.5.2 is vulnerable to path traversal (CWE-22) via improper link handling. The vulnerability exists in how Grunt processes file paths, allowing directory traversal sequences such as "../" to escape intended directory boundaries. The attack requires local access and limited user privileges to execute. An attacker can achieve arbitrary file read access with the privileges of the Grunt process, potentially exposing sensitive configuration files, private keys, or source code. The vulnerability was patched in Grunt version 1.5.2, with fixes merged in PR #1743.

## Affected products

- Grunt Grunt prior to 1.5.2

## Identifiers

- CVE-2022-0436
- GHSA-j383-35pm-c5h4

## Timeline

- 2022-04-13: disclosed
- 2022-04-12: patched: Fixed in version 1.5.2

## References

- [https://github.com/gruntjs/grunt/pull/1743](https://github.com/gruntjs/grunt/pull/1743)

## Related threats

- [Grunt race condition in file copy](https://junglewise.ai/threats/cve-2022-1537-grunt-race-condition-in-file-copy)
- [Grunt arbitrary code execution via unsafe YAML parsing](https://junglewise.ai/threats/cve-2020-7729-grunt-arbitrary-code-execution-via-unsafe-yaml-parsing)
