8.7high
GHSL-2020-302: Regular Expression Denial of Service (ReDoS) in validate.js
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.52% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-rv73-9c8w-jp4c
Description
Validate.js provides a declarative way of validating javascript objects. Versions 0.13.1 and prior contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS). As of time of publication, no known patches are available.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ansman validate.js | up to 0.13.1 | CVE List |
| validate.js (npm) | up to 0.13.1 | GitHub Advisory Database |
| validatejs validate.js | up to 0.13.1 | NVD |
All scores
| GitHub_M | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Green |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
Validate.js provides a declarative way of validating javascript objects. Versions 0.13.1 and prior contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS). As of time of publication, no known patches are available.
NVD (es)
Validate.js proporciona una forma declarativa de validar objetos de JavaScript. Las versiones 0.13.1 y anteriores contienen una o más expresiones regulares que son vulnerables a la denegación de servicio por expresión regular (ReDoS). Al momento de la publicación, no se conocían parches disponibles.
References
| https://securitylab.github.com/advisories/GHSL-2020-302-redos-validate.js/ | exploit, third-party-advisory | |
| https://github.com/ansman/validate.js/issues/342 | issue-tracking, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-26308 | advisory | |
| https://github.com/ansman/validate.js | package | |
| https://securitylab.github.com/advisories/GHSL-2020-302-redos-validate.js | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26308 changed 2024-10-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rv73-9c8w-jp4c changed 2024-10-28 | CC-BY-4.0 |
| NVD | CVE-2020-26308 changed 2026-06-17 | Public domain |