Vulnerabilities/

ajv has ReDoS when using `$data` option

Severity:
Medium

Description

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.

Recommendation

Update the ajv package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
ajv
Anything's wrong? Let us know Last updated on March 02, 2026