# CVE-2021-21267: Regular Expression Denial-of-Service in npm schema-inspector

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.09%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2021-03-19T20:14:21.000Z
- Modified: 2026-07-08T06:28:37.936Z
- Also known as: GHSA-f38p-c2gq-4pmr
- Weaknesses: CWE-20, CWE-400
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- schema-inspector schema-inspector: < 2.0.0
- schema-inspector (npm): before 2.0.0
- schema-inspector_project schema-inspector: before 2.0.0
- netapp e-series_performance_analyzer: no versions given
- netapp oncommand_insight: no versions given

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/schema-inspector/schema-inspector/security/advisories/GHSA-f38p-c2gq-4pmr> (exploit, third-party-advisory, web)
- <https://gist.github.com/mattwelke/b7f42424680a57b8161794ad1737cd8f> (exploit, third-party-advisory, web)
- <https://www.npmjs.com/package/schema-inspector> (exploit, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210528-0006/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21267> (advisory)
- <https://github.com/schema-inspector/schema-inspector/releases/tag/2.0.0> (web)
- <https://security.netapp.com/advisory/ntap-20210528-0006> (web)

## Sources

- CVE List: [CVE-2021-21267](https://www.cve.org/CVERecord?id=CVE-2021-21267), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-f38p-c2gq-4pmr](https://github.com/advisories/GHSA-f38p-c2gq-4pmr), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21267](https://nvd.nist.gov/vuln/detail/CVE-2021-21267), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21267 · Whole record: https://cve.day/CVE-2021-21267.json · Rebuilt by cve.day 2026-11-25T22:58:00.349Z
