{"id":"CVE-2021-21267","published":"2021-03-19T20:25:13Z","modified":"2024-08-03T18:09:14Z","title":"Regular Expression Denial-of-Service in npm schema-inspector","vendor":"schema-inspector","product":"schema-inspector","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0209,"percentile":0.82071,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/schema-inspector/schema-inspector/security/advisories/GHSA-f38p-c2gq-4pmr","tags":["x_refsource_CONFIRM"]},{"url":"https://gist.github.com/mattwelke/b7f42424680a57b8161794ad1737cd8f","tags":["x_refsource_MISC"]},{"url":"https://www.npmjs.com/package/schema-inspector","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0006/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":21.7,"factors":[{"name":"EPSS percentile","points":16.41},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"schema-inspector","affectedVersions":[{"vendor":"schema-inspector","product":"schema-inspector","versions":["< 2.0.0"]}],"affected":[{"ecosystem":"npm","package":"schema-inspector","vulnerableRanges":["<2.0.0"],"patched":["2.0.0"],"from":["GHSA-f38p-c2gq-4pmr"],"provenance":"source"}],"summary":{"text":"The schema-inspector npm package (before version 2.0.0) contains a regular expression denial-of-service flaw in its email address validation logic, which causes the program or browser page running the code to freeze when given crafted input. An attacker needs only to supply a malicious email string over the network to a system that validates email addresses with schema-inspector, with no authentication or user interaction required; applications that use only other validation rules, such as string length checks, are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:01:22Z"},"euvd":{"id":"EUVD-2021-0649","exploited":false,"provenance":"source"}}