CVE-2019-10781: Validation Bypass in schema-inspector
Summary
CVE-2019-10781: Validation Bypass in schema-inspector. Affects schema-inspector versions < 1.6.9. Fixed in 1.6.9. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
You can find more information about this vulnerability in the GitHub Advisory Database: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/06/GHSA-r24h-634p-m72x/GHSA-r24h-634p-m72x.json
References
Related vulnerabilities
Recent vulnerabilities recorded for schema-inspector.