Schema-Inspector is an open-source tool to sanitize and validate JS objects (npm package schema-inspector). In before version 2.0.0, email address validation is vulnerable to a denial-of-service attack where some input (for example `a@0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.`) will freeze the program or web browser page executing the code. This affects any current schema-inspector users using any version to validate email addresses. Users who do not do email validation, and instead do other types of validation (like string min or max length, etc), are not affected. Users should upgrade to version 2.0.0, which uses a regex expression that isn't vulnerable to ReDoS.
CVE-2021-21267 - High Severity Vulnerability
Vulnerable Libraries - schema-inspectorv1.6.9, schema-inspector-1.6.9.tgz
schema-inspector-1.6.9.tgz
Schema-Inspector is a powerful tool to sanitize and validate JS objects.
Library home page: https://registry.npmjs.org/schema-inspector/-/schema-inspector-1.6.9.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/schema-inspector/package.json
Dependency Hierarchy: - blockstack-21.0.0.tgz (Root Library) - :x: **schema-inspector-1.6.9.tgz** (Vulnerable Library)
Found in base branch: master
Vulnerability Details
Schema-Inspector is an open-source tool to sanitize and validate JS objects (npm package schema-inspector). In before version 2.0.0, email address validation is vulnerable to a denial-of-service attack where some input (for example `a@0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.`) will freeze the program or web browser page executing the code. This affects any current schema-inspector users using any version to validate email addresses. Users who do not do email validation, and instead do other types of validation (like string min or max length, etc), are not affected. Users should upgrade to version 2.0.0, which uses a regex expression that isn't vulnerable to ReDoS.
Publish Date: 2021-03-19
URL: CVE-2021-21267
CVSS 3 Score Details (7.5)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://github.com/schema-inspector/schema-inspector/security/advisories/GHSA-f38p-c2gq-4pmr
Release Date: 2021-03-19
Fix Resolution: 2.0.0
Step up your Open Source Security Game with Mend here