CVE-2020-7712: Command Injection in json

json Updated 02 Oct 2025

Summary

06/05/2021
Yes i
High
7.2

CVE-2020-7712: trentm/json vulnerable to command injection. Affects json versions < 10.0.0. Fixed in 10.0.0. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The json package is an npm package that provides functionality for working with JSON data. It is widely used in JavaScript applications for parsing and manipulating JSON objects. However, versions before 10.0.0 are vulnerable to command injection due to a flaw in the parseLookup function.

Vulnerability Detail

The vulnerability allows an attacker to inject arbitrary commands using the parseLookup function. This can lead to remote code execution and unauthorized access to the underlying system. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.2. It is important to address this issue promptly to prevent potential exploitation.

How To Fix

Minimum fixed version

10.0.0

This is the first release that contains the fix.

npm install json@10.0.0

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 update the json package to the fixed version.

Conclusion

The json package before version 10.0.0 is vulnerable to command injection. It is crucial to update the package to the latest version to mitigate the risk of remote code execution and unauthorized access. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for json →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary commands, potentially leading to remote code execution and unauthorized access to the system.

Versions before 10.0.0 of the json package are affected by this vulnerability.

Yes, the CVSS score for this vulnerability is 7.2.

There are no known exploits for this vulnerability at the moment.

Yes, you can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. No signup is required.

Related vulnerabilities

Recent vulnerabilities recorded for json.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

10.0.0

This is the first release that contains the fix.

npm install json@10.0.0

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