Path Traversal Vulnerability in GruntJS

grunt Updated 02 Oct 2025

Summary

06/04/2023
N/A
Yes i
Unrated
Not published

DLA-3386-1: grunt - security update. Affects grunt versions < 1.0.1-8+deb10u3. Fixed in 1.0.1-8+deb10u3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

GruntJS is a multipurpose task runner and build system tool widely used in web development projects. It provides a command-line interface for automating repetitive tasks and simplifying the build process. GruntJS allows developers to define and configure tasks using a JavaScript-based configuration file. It is commonly used for tasks such as minification, compilation, testing, and deployment of web applications.

Vulnerability Detail

A path traversal vulnerability was discovered in GruntJS versions prior to 1.5.2. This vulnerability could be exploited through malicious symlinks, allowing an attacker to access files outside of the intended directory. By manipulating the file paths used by GruntJS, an attacker could potentially read sensitive files or overwrite existing files on the system. This could lead to unauthorized access, data leakage, or even remote code execution.

How To Fix

Minimum fixed version

1.0.1-8+deb10u3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade grunt

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading the GruntJS package to the latest version.

Conclusion

The path traversal vulnerability in GruntJS prior to version 1.5.2 poses a significant security risk to web applications using this package. It is crucial to upgrade to the latest version to mitigate the vulnerability and protect against potential attacks. For further support and assistance in vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for grunt →

Share this vulnerability

FAQ

GruntJS is a task runner and build system tool used in web development projects. It automates repetitive tasks and simplifies the build process.

A path traversal vulnerability allows an attacker to access files outside of the intended directory by manipulating file paths.

This vulnerability could lead to unauthorized access, data leakage, or remote code execution, depending on the attacker's intentions and the system's configuration.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze and alert you if any open-source vulnerabilities, including this one, are found.

You can find more information about Debian LTS security advisories, including how to apply updates and frequently asked questions, on the Debian LTS wiki: https://wiki.debian.org/LTS

Related vulnerabilities

Recent vulnerabilities recorded for grunt.

How To Fix

Minimum fixed version

1.0.1-8+deb10u3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade grunt

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback