All the vulnerabilites related to schema-inspector - schema-inspector
cve-2021-21267
Vulnerability from cvelistv5
Published
2021-03-19 20:25
Modified
2024-08-03 18:09
Severity ?
EPSS score ?
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.
References
▼ | URL | Tags |
---|---|---|
https://github.com/schema-inspector/schema-inspector/security/advisories/GHSA-f38p-c2gq-4pmr | x_refsource_CONFIRM | |
https://gist.github.com/mattwelke/b7f42424680a57b8161794ad1737cd8f | x_refsource_MISC | |
https://www.npmjs.com/package/schema-inspector | x_refsource_MISC | |
https://security.netapp.com/advisory/ntap-20210528-0006/ | x_refsource_CONFIRM |
Impacted products
Vendor | Product | Version | |
---|---|---|---|
▼ | schema-inspector | schema-inspector |
Version: < 2.0.0 |
|
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-03T18:09:14.989Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/schema-inspector/schema-inspector/security/advisories/GHSA-f38p-c2gq-4pmr" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://gist.github.com/mattwelke/b7f42424680a57b8161794ad1737cd8f" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://www.npmjs.com/package/schema-inspector" }, { "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://security.netapp.com/advisory/ntap-20210528-0006/" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "schema-inspector", "vendor": "schema-inspector", "versions": [ { "status": "affected", "version": "\u003c 2.0.0" } ] } ], "descriptions": [ { "lang": "en", "value": "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\u0027t vulnerable to ReDoS." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 7.5, "baseSeverity": "HIGH", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-400", "description": "CWE-400: Uncontrolled Resource Consumption", "lang": "en", "type": "CWE" } ] }, { "descriptions": [ { "cweId": "CWE-20", "description": "CWE-20: Improper Input Validation", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2021-05-28T09:06:17", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/schema-inspector/schema-inspector/security/advisories/GHSA-f38p-c2gq-4pmr" }, { "tags": [ "x_refsource_MISC" ], "url": "https://gist.github.com/mattwelke/b7f42424680a57b8161794ad1737cd8f" }, { "tags": [ "x_refsource_MISC" ], "url": "https://www.npmjs.com/package/schema-inspector" }, { "tags": [ "x_refsource_CONFIRM" ], "url": "https://security.netapp.com/advisory/ntap-20210528-0006/" } ], "source": { "advisory": "GHSA-f38p-c2gq-4pmr", "discovery": "UNKNOWN" }, "title": "Regular Expression Denial-of-Service in npm schema-inspector", "x_legacyV4Record": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2021-21267", "STATE": "PUBLIC", "TITLE": "Regular Expression Denial-of-Service in npm schema-inspector" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "schema-inspector", "version": { "version_data": [ { "version_value": "\u003c 2.0.0" } ] } } ] }, "vendor_name": "schema-inspector" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "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\u0027t vulnerable to ReDoS." } ] }, "impact": { "cvss": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 7.5, "baseSeverity": "HIGH", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "version": "3.1" } }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "CWE-400: Uncontrolled Resource Consumption" } ] }, { "description": [ { "lang": "eng", "value": "CWE-20: Improper Input Validation" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/schema-inspector/schema-inspector/security/advisories/GHSA-f38p-c2gq-4pmr", "refsource": "CONFIRM", "url": "https://github.com/schema-inspector/schema-inspector/security/advisories/GHSA-f38p-c2gq-4pmr" }, { "name": "https://gist.github.com/mattwelke/b7f42424680a57b8161794ad1737cd8f", "refsource": "MISC", "url": "https://gist.github.com/mattwelke/b7f42424680a57b8161794ad1737cd8f" }, { "name": "https://www.npmjs.com/package/schema-inspector", "refsource": "MISC", "url": "https://www.npmjs.com/package/schema-inspector" }, { "name": "https://security.netapp.com/advisory/ntap-20210528-0006/", "refsource": "CONFIRM", "url": "https://security.netapp.com/advisory/ntap-20210528-0006/" } ] }, "source": { "advisory": "GHSA-f38p-c2gq-4pmr", "discovery": "UNKNOWN" } } } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2021-21267", "datePublished": "2021-03-19T20:25:13", "dateReserved": "2020-12-22T00:00:00", "dateUpdated": "2024-08-03T18:09:14.989Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }