CVE-2025-69873
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.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-ajv | Fix pending | UBUNTU-CVE-2025-69873 | |
| Ubuntu 26.04 | node-ajv | Under investigation | UBUNTU-CVE-2025-69873 | |
| Ubuntu 25.10 | node-ajv | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-69873 | |
| Ubuntu 24.04 | node-ajv | Under investigation | UBUNTU-CVE-2025-69873 | |
| Ubuntu 22.04 | node-ajv | Under investigation | UBUNTU-CVE-2025-69873 | |
| Ubuntu 20.04 | node-ajv | Fix pending | UBUNTU-CVE-2025-69873 | |
| Ubuntu 18.04 | node-ajv | Fix pending | UBUNTU-CVE-2025-69873 | |
| Debian 14 | node-ajv | Fixed | 8.18.0~ds+~cs6.1.1-1 | DEBIAN-CVE-2025-69873 |
| Debian 13 | node-ajv | Fix pending | DEBIAN-CVE-2025-69873 | |
| Debian 12 | node-ajv | Fix pending | DEBIAN-CVE-2025-69873 | |
| Red Hat Enterprise Linux 10 | linux-sgx | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-common | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-mpa | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-pccs | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-pccs-admin | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-pckid-tool | Not affected | ||
| Red Hat Enterprise Linux 10 | tdx-qgs | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | linux-sgx | Not affected | ||
| Red Hat Enterprise Linux 9 | pcs | Not affected | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-common | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-mpa | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-pccs | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-pccs-admin | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-pckid-tool | Not affected | ||
| Red Hat Enterprise Linux 9 | tdx-qgs | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Not affected | ||
| npm library | ajv | Fixed | 6.14.0 | GHSA-2g4f-4pwh-qvx6 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ajv.js ajv: affected: before 6.14.0, 7.0.0 to before 8.17.2; fixed in
6.14.0,8.17.2
References
- https://github.com/advisories/GHSA-2g4f-4pwh-qvx6
- https://github.com/EthanKim88/ethan-cve-disclosures/blob/main/CVE-2025-69873-ajv-ReDoS.md
- https://github.com/github/advisory-database/pull/6991
- https://github.com/ajv-validator/ajv/pull/2588
- https://github.com/ajv-validator/ajv/releases/tag/v6.14.0
- https://github.com/ajv-validator/ajv/pull/2590
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.