{"id":"UBUNTU-CVE-2025-69873","details":"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.","modified":"2026-09-11T15:00:16.711733045Z","published":"2026-02-11T19:15:00Z","upstream":["CVE-2025-69873"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-69873"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-69873"},{"type":"REPORT","url":"https://github.com/EthanKim88/ethan-cve-disclosures/blob/main/CVE-2025-69873-ajv-ReDoS.md"}],"affected":[{"package":{"name":"node-ajv","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/node-ajv?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-ajv","binary_version":"5.0.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"}},{"package":{"name":"node-ajv","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-ajv?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.10.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-ajv","binary_version":"6.10.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"}},{"package":{"name":"node-ajv","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-ajv?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.12.6-2","6.12.6-3"],"ecosystem_specific":{"binaries":[{"binary_name":"node-ajv","binary_version":"6.12.6-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"}},{"package":{"name":"node-ajv","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-ajv?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.12.6-3","8.12.0~ds+~2.1.1-4"],"ecosystem_specific":{"binaries":[{"binary_version":"8.12.0~ds+~2.1.1-4","binary_name":"node-ajv"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"}},{"package":{"name":"node-ajv","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-ajv?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.12.0~ds+~2.1.1-5"],"ecosystem_specific":{"binaries":[{"binary_version":"8.12.0~ds+~2.1.1-5","binary_name":"node-ajv"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"}},{"package":{"name":"node-ajv","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-ajv?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.12.0~ds+~2.1.1-5","8.17.1~ds+~3.0.1+~3.1.0-2","8.17.1~ds+~3.0.1+~3.1.0-4build1"],"ecosystem_specific":{"binaries":[{"binary_version":"8.17.1~ds+~3.0.1+~3.1.0-4build1","binary_name":"node-ajv"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"Ubuntu","score":"medium"}]}