CVE-2020-7751: Prototype pollution in pathval

pathval Updated 02 Oct 2025

Summary

10/02/2022
Yes i
High
7.2

CVE-2020-7751: Prototype pollution in pathval. Affects pathval versions < 1.1.1. Fixed in 1.1.1. How to fix ↓

Also tracked for

The same CVE-2020-7751 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package under scrutiny is pathval, an npm package. It is used for validating and manipulating JavaScript object paths. The package allows developers to access and modify nested properties of objects using dot notation or array notation. The vulnerability affects all versions of pathval up to 1.1.1.

Vulnerability Detail

The vulnerability in pathval is related to prototype pollution. Prototype pollution is a type of vulnerability that occurs when an attacker can inject properties into an object's prototype. In the case of pathval, an attacker can manipulate the prototype of an object, leading to unexpected behavior or even remote code execution. This vulnerability has a CVSS score of 7.2, indicating a high severity level. It can be exploited by an attacker with high privileges, without requiring user interaction.

How To Fix

Latest published version: 2.0.1 as of 22 Oct 2026

npm install pathval@2.0.1

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

If you need the minimum change

1.1.1

This is the first release that contains the fix.

npm install pathval@1.1.1

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

Conclusion

In conclusion, the pathval package is vulnerable to prototype pollution, which can lead to unexpected behavior or even remote code execution. It is crucial to update the package to version 1.1.1 or higher to fix the vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pathval →

Share this vulnerability

FAQ

Prototype pollution is a vulnerability that allows an attacker to modify an object's prototype, leading to unexpected behavior or security issues.

An attacker can exploit this vulnerability by injecting malicious properties into an object's prototype, which can lead to remote code execution or other security issues.

Yes, all versions of pathval up to 1.1.1 are affected by this vulnerability. It is recommended to update to the latest version.

No, there is no known workaround for this vulnerability. Updating to the fixed version is the only solution.

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

How To Fix

Latest published version: 2.0.1 as of 22 Oct 2026

npm install pathval@2.0.1

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

If you need the minimum change

1.1.1

This is the first release that contains the fix.

npm install pathval@1.1.1

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