Security mailing lists by PureSourceCode

CVE-2025-69873

LOW 2.9CVSS 3.1

ajv has ReDoS when using `$data` option

ajv (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.

Published
11 Feb 2026
Last modified
10 Sep 2026
Assigned by
cve@mitre.org
NVD status
Deferred
Weakness
CWE-1333CWE-400
Also known as
GHSA-2g4f-4pwh-qvx6
Sources
NVDJSONOSV GHSA-2g4f-4pwh-qvx6JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD cve@mitre.org (Secondary) CVSS 3.1 LOW 2.9 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm ajv >= 7.0.0-alpha.0, < 8.18.0 8.18.0
OSV npm ajv < 6.14.0 6.14.0

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 11 Feb 2026)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 11 Feb 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.