node-ajv — security advisory
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.
- Products
- node-ajv
- Affected versions
- 5.0.0-1, 6.10.2-1, 6.12.6-2, 6.12.6-3, 8.12.0~ds+~2.1.1-4, 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, 8.20.0~ds+~cs6.1.3-1, 8.20.0~ds+~cs7.1.2-1, 8.20.0~ds+~cs7.1.3-1, 8.20.0~ds+~cs7.1.3-3
- Fixed versions
- Not specified
- CVEs
- CVE-2025-69873
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 17:14 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2025-69873
node-ajv
Fixed versions: Not specified
node-ajv
Fixed versions: Not specified
node-ajv
Fixed versions: Not specified
node-ajv
Fixed versions: Not specified
node-ajv
Fixed versions: Not specified
node-ajv
Fixed versions: Not specified
node-ajv
Fixed versions: Not specified
Complete source record
{
"id": "bdcafc00fc832daecd1f52ca7d7a8384ff2aa8819da5a55c9d79077abdfef3ac",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-69873",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-69873",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2025-69873",
"products": [
{
"name": {
"value": "node-ajv",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-ajv",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.10.2-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "node-ajv",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.12.6-2",
"evidence": "/affected/2/versions"
},
{
"value": "6.12.6-3",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "node-ajv",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.12.6-3",
"evidence": "/affected/3/versions"
},
{
"value": "8.12.0~ds+~2.1.1-4",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "node-ajv",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "8.12.0~ds+~2.1.1-5",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "node-ajv",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "8.17.1~ds+~3.0.1+~3.1.0-4build1",
"evidence": "/affected/5/versions"
},
{
"value": "8.20.0~ds+~cs6.1.3-1",
"evidence": "/affected/5/versions"
},
{
"value": "8.20.0~ds+~cs7.1.2-1",
"evidence": "/affected/5/versions"
},
{
"value": "8.20.0~ds+~cs7.1.3-1",
"evidence": "/affected/5/versions"
},
{
"value": "8.20.0~ds+~cs7.1.3-3",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "node-ajv",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "8.12.0~ds+~2.1.1-5",
"evidence": "/affected/6/versions"
},
{
"value": "8.17.1~ds+~3.0.1+~3.1.0-2",
"evidence": "/affected/6/versions"
},
{
"value": "8.17.1~ds+~3.0.1+~3.1.0-4build1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2025-69873",
"aliases": [
"UBUNTU-CVE-2025-69873"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ajv",
"purl": "pkg:deb/ubuntu/node-ajv?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"5.0.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ajv",
"binary_version": "5.0.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ajv",
"purl": "pkg:deb/ubuntu/node-ajv?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"6.10.2-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ajv",
"binary_version": "6.10.2-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ajv",
"purl": "pkg:deb/ubuntu/node-ajv?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"6.12.6-2",
"6.12.6-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ajv",
"binary_version": "6.12.6-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ajv",
"purl": "pkg:deb/ubuntu/node-ajv?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"6.12.6-3",
"8.12.0~ds+~2.1.1-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ajv",
"binary_version": "8.12.0~ds+~2.1.1-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ajv",
"purl": "pkg:deb/ubuntu/node-ajv?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"8.12.0~ds+~2.1.1-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ajv",
"binary_version": "8.12.0~ds+~2.1.1-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ajv",
"purl": "pkg:deb/ubuntu/node-ajv?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"8.17.1~ds+~3.0.1+~3.1.0-4build1",
"8.20.0~ds+~cs6.1.3-1",
"8.20.0~ds+~cs7.1.2-1",
"8.20.0~ds+~cs7.1.3-1",
"8.20.0~ds+~cs7.1.3-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ajv",
"binary_version": "8.20.0~ds+~cs7.1.3-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ajv",
"purl": "pkg:deb/ubuntu/node-ajv?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69873.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ajv",
"binary_version": "8.17.1~ds+~3.0.1+~3.1.0-4build1"
}
]
}
}
],
"modified": "2026-10-27T04:15:24.697687143Z",
"provider": "osv",
"upstream": [
"CVE-2025-69873"
],
"references": [
"https://ubuntu.com/security/CVE-2025-69873",
"https://www.cve.org/CVERecord?id=CVE-2025-69873",
"https://github.com/EthanKim88/ethan-cve-disclosures/blob/main/CVE-2025-69873-ajv-ReDoS.md"
]
},
"related_cves": [
{
"value": "CVE-2025-69873",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 460163,
"published_at": "2026-02-11T19:15:00+00:00"
}