CVE-2020-7729
HIGH 7.1CVSS 3.1Arbitrary Code Execution in grunt
The package grunt before 1.3.0 are vulnerable to Arbitrary Code Execution due to the default usage of the function load() instead of its secure replacement safeLoad() of the package js-yaml inside grunt.file.readYAML.
- Published
- 3 Sep 2020
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1188
- Also known as
- GHSA-m5pj-vjjf-4m3h
- Sources
- NVDJSONOSV GHSA-m5pj-vjjf-4m3hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:N/AC:H/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gruntjs | gruntcpe:2.3:a:gruntjs:grunt:*:*:*:*:*:node.js:*:* |
< 1.3.0 | 1.3.0 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| OSV | npm | grunt | < 1.3.0 | 1.3.0 |
References
- https://github.com/gruntjs/grunt/blob/master/lib/grunt/file.js%23L249 · Broken Link, WEB
- https://github.com/gruntjs/grunt/commit/e350cea1724eb3476464561a380fb6a64e61e4e7 · Patch, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2020/09/msg00008.html · Mailing List, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-607922 · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-GRUNT-597546 · Exploit, Third Party Advisory, WEB
- https://usn.ubuntu.com/4595-1/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7729 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 3 Sep 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 May 2021)