CVE-2020-28464: Arbitrary code execution in djv

djv Updated 02 Oct 2025

Summary

13/04/2021
Yes i
Critical
9.8

CVE-2020-28464: Arbitrary code execution in djv. Affects djv versions < 2.1.4. Fixed in 2.1.4. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Djv is an npm package that provides a lightweight and efficient JSON schema validator. It is commonly used in JavaScript applications to validate and enforce data structures based on predefined schemas. Djv allows developers to define and validate JSON schemas, ensuring data consistency and integrity. However, versions of djv prior to 2.1.4 are vulnerable to arbitrary code execution. This means that an attacker can manipulate the schema file to inject and execute arbitrary JavaScript code on the victim's machine, potentially leading to unauthorized access, data breaches, or other malicious activities.

Vulnerability Detail

The vulnerability (CVE-2020-28464) in djv arises from a lack of proper input validation and sanitization when processing the schema file. By crafting a malicious schema file, an attacker can exploit this weakness and execute arbitrary JavaScript code on the target system. This code execution can have severe consequences, including unauthorized access to sensitive information, remote code execution, or the installation of malware. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

Minimum fixed version

2.1.4

This is the first release that contains the fix.

npm install djv@2.1.4

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

Workaround

As a temporary workaround, developers can implement strict input validation and sanitization when processing the schema file. By thoroughly validating and sanitizing the schema input, the risk of code injection can be reduced. However, this workaround is not recommended as it may not provide complete protection against all possible attack vectors. It is strongly advised to update to the latest version of djv as soon as possible.

Conclusion

The vulnerability (CVE-2020-28464) in djv exposes applications to arbitrary code execution, allowing attackers to run malicious JavaScript code on the victim's machine. To mitigate this risk, it is crucial to update the djv package to version 2.1.4 or later. This update includes the necessary security patches to prevent code injection and protect against potential unauthorized access or data breaches. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for djv →

Share this vulnerability

FAQ

Djv is an npm package that provides a JSON schema validator for JavaScript applications. It allows developers to define and validate JSON schemas, ensuring data consistency and integrity.

The vulnerability (CVE-2020-28464) in djv allows an attacker to execute arbitrary JavaScript code by manipulating the schema file. This can lead to unauthorized access, data breaches, or other malicious activities.

The arbitrary code execution vulnerability in djv can result in unauthorized access to sensitive information, remote code execution, or the installation of malware on the victim's machine.

To fix this vulnerability, it is essential to update the djv package to version 2.1.4 or later. This version includes the necessary patches and security enhancements to mitigate the arbitrary code execution vulnerability.

As a temporary workaround, developers can implement strict input validation and sanitization when processing the schema file. However, it is strongly recommended to update to the latest version of djv to ensure complete protection.

How To Fix

Minimum fixed version

2.1.4

This is the first release that contains the fix.

npm install djv@2.1.4

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