ajv (Another JSON Schema Validator) before 8.18.0 is vulnerable to Regular Expression Denial of Service…
Historical advisory recorded 25 Oct 2026 04:17:18 UTC. Read the latest advisory.
nvd · CVE-2025-69873
Publishedajv (Another JSON Schema Validator) before 8.18.0 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. This issue is also fixed in version 6.14.0.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2025-69873
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Deferred
Weakness classifications: CWE-1333 · CWE-400
Original publisher date fields
published: 2026-02-11T19:15:50.467
lastModified: 2026-09-10T13:17:29.420
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON