Skip to main content
← All vulnerabilities
CVE-2021-21267GHSA-F38P-C2GQ-4PMR

Regular Expression Denial-of-Service in npm schema-inspector

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.0
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • schema-inspector schema-inspector

    fixed in 2.0.0

  • schema-inspectornpm

    fixed in 2.0.0

References 4

GitHub · schema-inspector/schema-inspector

gist.github.com

npmjs.com

security.netapp.com