PT-2026-7637 · Ajv · Ajv

Published

2025-01-01

·

Updated

2026-05-20

·

CVE-2025-69873

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.

Exploit

Fix

DoS

Resource Exhaustion

Weakness Enumeration

Related Identifiers

CLEANSTART-2026-AD27625
CLEANSTART-2026-BE61221
CLEANSTART-2026-CE10526
CLEANSTART-2026-DV49099
CLEANSTART-2026-GS57401
CLEANSTART-2026-LC05413
CLEANSTART-2026-NB51079
CLEANSTART-2026-OW14897
CLEANSTART-2026-OW14933
CLEANSTART-2026-SW34937
CLEANSTART-2026-TZ34913
CVE-2025-69873
GHSA-2G4F-4PWH-QVX6
RHSA-2026:13512
RHSA-2026:6277

Affected Products

Ajv