Regular Expression Denial-of-Service in npm schema-inspector
Description
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
schema-inspectornpm | < 2.0.0 | 2.0.0 |
Affected products
1- Range: < 2.0.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
8- github.com/advisories/GHSA-f38p-c2gq-4pmrghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-21267ghsaADVISORY
- gist.github.com/mattwelke/b7f42424680a57b8161794ad1737cd8fghsax_refsource_MISCWEB
- github.com/schema-inspector/schema-inspector/releases/tag/2.0.0ghsaWEB
- github.com/schema-inspector/schema-inspector/security/advisories/GHSA-f38p-c2gq-4pmrghsax_refsource_CONFIRMWEB
- security.netapp.com/advisory/ntap-20210528-0006ghsaWEB
- security.netapp.com/advisory/ntap-20210528-0006/mitrex_refsource_CONFIRM
- www.npmjs.com/package/schema-inspectorghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.