CVE-2019-10781: Validation Bypass in schema-inspector

schema-inspector Updated 02 Oct 2025

Summary

10/06/2020
Yes i
Critical
9.8

CVE-2019-10781: Validation Bypass in schema-inspector. Affects schema-inspector versions < 1.6.9. Fixed in 1.6.9. 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 schema-inspector package is an npm module used for validating and sanitizing JavaScript objects based on predefined schemas. It provides functions like sanitize() and validate() to ensure the integrity and security of data. However, versions before 1.6.9 are vulnerable to a validation bypass attack, where a specially crafted JavaScript object can evade the sanitization and validation process.

Vulnerability Detail

The vulnerability (CVE-2019-10781) in schema-inspector allows an attacker to bypass the sanitize() and validate() functions. By manipulating the input object, an attacker can exploit this flaw to pass malicious data that should have been rejected or sanitized. This can lead to various security issues, such as injection attacks, data corruption, or unauthorized access to sensitive information. The vulnerability has a CVSS score of 9.8 (Critical).

How To Fix

Latest published version: 2.1.0 as of 23 Oct 2026

npm install schema-inspector@2.1.0

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.6.9

This is the first release that contains the fix.

npm install schema-inspector@1.6.9

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

Conclusion

In conclusion, the schema-inspector package before version 1.6.9 is vulnerable to a validation bypass attack. It is crucial to update to the latest version to mitigate the risk of injection attacks, data corruption, or unauthorized access to sensitive information. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for schema-inspector →

Share this vulnerability

FAQ

schema-inspector is an npm package used for validating and sanitizing JavaScript objects based on predefined schemas. It helps ensure the integrity and security of data.

The vulnerability allows an attacker to bypass the validation and sanitization process, potentially leading to injection attacks, data corruption, or unauthorized access to sensitive information.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. It analyzes your package-lock.json file and provides real-time alerts for open-source vulnerabilities.

No specific workaround is available for this vulnerability. It is recommended to update the schema-inspector package to the latest version.

Related vulnerabilities

Recent vulnerabilities recorded for schema-inspector.

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

Latest published version: 2.1.0 as of 23 Oct 2026

npm install schema-inspector@2.1.0

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.6.9

This is the first release that contains the fix.

npm install schema-inspector@1.6.9

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