ajv (npm)
The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
Advisories
5
Latest version
8.20.0
Released Apr 24, 2026
License
MIT
OpenSSF Scorecard
4.8 / 10
How to fix
Upgrading to 8.18.0 or later clears every advisory below that has a fix.
Upgrade commands
npm
npm install ajv@8.20.0yarn
yarn add ajv@8.20.0pnpm
pnpm add ajv@8.20.0Known vulnerabilities
| Advisory | Severity | Affected | Fixed in |
|---|---|---|---|
| GHSA-2g4f-4pwh-qvx6 ajv has ReDoS when using `$data` option |
Medium EPSS 0.55% |
>= 7.0.0-alpha.0, < 8.18.0 | 8.18.0 |
| GHSA-2g4f-4pwh-qvx6 ajv has ReDoS when using `$data` option |
Medium EPSS 0.55% |
< 6.14.0 | 6.14.0 |
| GHSA-2g4f-4pwh-qvx6 ajv has ReDoS when using `$data` option |
Medium EPSS 0.55% |
>= 7.0.0-alpha.0, < 8.18.0 | 8.18.0 |
| GHSA-2g4f-4pwh-qvx6 ajv has ReDoS when using `$data` option |
Medium EPSS 0.55% |
< 6.14.0 | 6.14.0 |
| GHSA-v88g-cgmw-v5xw Prototype Pollution in Ajv |
Medium EPSS 2.31% |
< 6.12.3 | 6.12.3 |
Source: git+https://github.com/ajv-validator/ajv.git
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor