NodeJS/ajv/7.0.0-rc.4


Another JSON Schema Validator

https://www.npmjs.com/package/ajv
MIT

1 Security Vulnerabilities

ajv has ReDoS when using `$data` option

Published date: 2026-02-11T21:30:39Z
CVE: CVE-2025-69873
Links:

ajv (Another JSON Schema Validator) through version 8.17.1 is vulnerable to Regular Expression Denial of Service (ReDoS) when the $data option is enabled. The pattern keyword accepts runtime data via JSON Pointer syntax ($data reference), which is passed directly to the JavaScript RegExp() constructor without validation. An attacker can inject a malicious regex pattern (e.g., \"^(a|a)*$\") combined with crafted input to cause catastrophic backtracking. A 31-character payload causes approximately 44 seconds of CPU blocking, with each additional character doubling execution time. This enables complete denial of service with a single HTTP request against any API using ajv with $data: true for dynamic schema validation.

Affected versions: >= 7.0.0-alpha.0, < 8.18.0 (355 affected versions) Show all vulnerable versions
Secure versions: [6.14.0, 6.15.0, 8.18.0, 8.20.0]
Recommendation: Update to version 8.20.0.

359 Other Versions

Version License Security Released
3.8.4 MIT 2 2016-03-09 - 23:23 over 10 years
3.8.3 MIT 2 2016-03-07 - 06:57 over 10 years
3.8.2 MIT 2 2016-03-02 - 15:01 over 10 years
3.8.1 MIT 2 2016-03-01 - 00:27 over 10 years
3.8.0 MIT 2 2016-02-28 - 23:08 over 10 years
3.7.2 MIT 2 2016-02-24 - 09:27 over 10 years
3.7.1 MIT 2 2016-02-21 - 13:29 almost 11 years
3.7.0 MIT 2 2016-02-17 - 23:04 almost 11 years
3.6.2 MIT 2 2016-02-14 - 20:43 almost 11 years
3.6.1 MIT 2 2016-02-13 - 22:13 almost 11 years
3.6.0 MIT 2 2016-02-13 - 21:17 almost 11 years
3.5.3 MIT 2 2016-02-05 - 09:21 almost 11 years
3.5.2 MIT 2 2016-02-04 - 20:03 almost 11 years
3.5.1 MIT 2 2016-02-01 - 23:39 almost 11 years
3.5.0 MIT 2 2016-02-01 - 18:16 almost 11 years
3.4.0 MIT 2 2016-01-17 - 15:19 almost 11 years
3.3.1 MIT 2 2016-01-16 - 16:15 almost 11 years
3.3.0 MIT 2 2016-01-15 - 07:00 almost 11 years
3.2.3 MIT 2 2016-01-14 - 21:46 almost 11 years
3.2.2 MIT 2 2016-01-13 - 22:26 almost 11 years
3.2.1 MIT 2 2016-01-13 - 22:19 almost 11 years
3.2.0 MIT 2 2016-01-09 - 14:51 almost 11 years
3.1.1 MIT 2 2016-01-04 - 22:27 almost 11 years
3.1.0 MIT 2 2016-01-02 - 17:19 almost 11 years
3.0.4 MIT 2 2015-12-30 - 23:06 almost 11 years
3.0.3 MIT 2 2015-12-28 - 12:21 almost 11 years
3.0.2 MIT 2 2015-12-27 - 22:13 almost 11 years
3.0.1 MIT 2 2015-12-27 - 22:11 almost 11 years
3.0.0 MIT 2 2015-12-27 - 21:47 almost 11 years
2.5.0 MIT 2 2015-12-19 - 19:01 almost 11 years
2.4.0 MIT 2 2015-12-12 - 21:58 almost 11 years
2.3.0 MIT 2 2015-12-11 - 21:44 almost 11 years
2.2.2 MIT 2 2015-12-07 - 22:08 almost 11 years
2.2.1 MIT 2 2015-12-06 - 22:10 almost 11 years
2.2.0 MIT 2 2015-12-05 - 21:28 almost 11 years
2.1.4 MIT 2 2015-12-04 - 22:22 almost 11 years
2.1.3 MIT 2 2015-11-29 - 01:45 almost 11 years
2.1.2 MIT 2 2015-11-28 - 22:40 almost 11 years
2.1.0 MIT 2 2015-11-28 - 15:12 almost 11 years
2.0.4 MIT 2 2015-11-27 - 09:27 almost 11 years
2.0.3 MIT 2 2015-11-26 - 22:57 almost 11 years
2.0.2 MIT 2 2015-11-24 - 06:44 almost 11 years
2.0.1 MIT 2 2015-11-22 - 02:17 about 11 years
2.0.0 MIT 2 2015-11-22 - 01:28 about 11 years
2.0.0-beta.3 MIT 2 2015-11-17 - 23:24 about 11 years
2.0.0-beta.2 MIT 2 2015-11-17 - 23:10 about 11 years
2.0.0-beta.1 MIT 2 2015-11-14 - 23:14 about 11 years
2.0.0-beta.0 MIT 2 2015-11-13 - 14:35 about 11 years
1.4.10 MIT 2 2015-11-17 - 20:40 about 11 years
1.4.9 MIT 2 2015-11-07 - 14:09 about 11 years