Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. schema-inspector
  4. ›
  5. CVE-2021-21267

CVE-2021-21267: Uncontrolled Resource Consumption

March 19, 2021 (updated June 30, 2022)

Schema-Inspector is an open-source tool to sanitize and validate JS objects (npm package schema-inspector). In, email address validation is vulnerable to a denial-of-service attack where some input 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, which uses a regex expression that isn’t vulnerable to ReDoS.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-21267

Code Behaviors & Features

Detect and mitigate CVE-2021-21267 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.0

Fixed versions

  • 2.0.0

Solution

Upgrade to version 2.0.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

npm/schema-inspector/CVE-2021-21267.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:27 +0000.