PT-2026-7637
CVE-2025-69873
·
Published
2025-01-01
·
Updated
2026-09-29
Description by
CVSS 4.0
5.5
MediumMetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Name of the Vulnerable Software and Affected Versions
ajv versions through 8.17.1
Description
ajv (Another JSON Schema Validator) is susceptible to Regular Expression Denial of Service (ReDoS) when the
$data option is enabled. The pattern keyword accepts runtime data through JSON Pointer syntax ($data reference) and passes it directly to the JavaScript RegExp() constructor without validation. An attacker can inject a malicious regular expression pattern, such as ^(a|a)*$, combined with crafted input, to trigger catastrophic backtracking. A 31-character payload can cause approximately 44 seconds of CPU blocking, with execution time doubling with each additional character. This can lead to a complete denial of service with a single HTTP request against any API utilizing ajv with $data: true for dynamic schema validation. The vulnerable component is the RegExp() constructor used in conjunction with the pattern keyword.Recommendations
Versions prior to 8.17.1 should be used.
Disable the
$data option when using ajv for schema validation. Found an issue in the description? Have something to add? Feel free to write us 👾