CVE-2020-7597: Remote Code Execution in codecov NPM module

codecov Updated 02 Oct 2025

Summary

19/02/2020
Yes i
High
8.8

CVE-2020-7597: codecov NPM module allows remote attackers to execute arbitrary commands. Affects codecov versions < 3.6.5. Fixed in 3.6.5. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The codecov-node npm module is a package used for code coverage reporting in Node.js applications. It provides functionality to collect and process coverage data. The vulnerability in version 3.6.5 and earlier allows remote attackers to execute arbitrary commands. This vulnerability is a result of an incomplete fix for CVE-2020-7596. The value provided as part of the gcov-root argument is executed by the exec function within lib/codecov.js.

Vulnerability Detail

The vulnerability in the codecov-node npm module allows remote attackers to execute arbitrary commands. By providing a malicious value as the gcov-root argument, an attacker can trigger the execution of arbitrary code. This can lead to unauthorized access, data breaches, and potential compromise of the affected system. The severity of this vulnerability is rated as HIGH with a CVSS score of 8.8.

How To Fix

Latest published version: 3.8.3 as of 22 Oct 2026

npm install codecov@3.8.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.6.5

This is the first release that contains the fix.

npm install codecov@3.6.5

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 crucial to update to the fixed version of the package as soon as possible.

Conclusion

The codecov-node npm module is vulnerable to remote code execution, allowing attackers to execute arbitrary commands. To mitigate this vulnerability, it is crucial to update the package to version 3.6.5 or later. No known workaround exists for this issue. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for codecov →

Share this vulnerability

FAQ

This vulnerability allows remote attackers to execute arbitrary commands, potentially leading to unauthorized access, data breaches, and compromise of the affected system.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your package-lock.json file to the playground without any signup.

No, there is no known workaround for this vulnerability. It is crucial to update to the fixed version of the package.

The CVSS score of this vulnerability is 8.8, indicating a high severity.

Related vulnerabilities

Recent vulnerabilities recorded for codecov.

How To Fix

Latest published version: 3.8.3 as of 22 Oct 2026

npm install codecov@3.8.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.6.5

This is the first release that contains the fix.

npm install codecov@3.6.5

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