CVE-2025-69873: High severity npm/ajv vulnerability

Published Feb 11, 2026
·
Updated

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.

Other sources

ajv (Another JSON Schema Validator) through version 8.17.1 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.

— GitHub

ajv (Another JSON Schema Validator) through version 8.17.1 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.

— Red Hat

Affected Software

13 affected componentsFixes available
npm/ajv<=8.17.1
npm/ajv<8.18.0
8.18.0
npm/ajv<6.14.0
6.14.0
npm/ajv>=7.0.0-alpha.0<8.18.0
8.18.0
IBM Storage Defender Copy Data Management<=2.2.0.0 - 2.3.1.0
debian/node-ajv<=6.12.6-3, <=8.12.0~ds+~2.1.1-5
8.18.0~ds+~cs6.1.1-1
ubuntu/node-ajv*
ubuntu/node-ajv*
ubuntu/node-ajv*
ubuntu/node-ajv*
ubuntu/node-ajv*
ubuntu/node-ajv*
ubuntu/node-ajv*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/ajv to a version that resolves this vulnerability.

    Fixed in 8.18.0
  2. Upgrade

    Upgrade npm/ajv to a version that resolves this vulnerability.

    Fixed in 6.14.0
  3. Upgrade

    Upgrade debian/node-ajv to a version that resolves this vulnerability.

    Fixed in 8.18.0~ds+~cs6.1.1-1
  4. Upgrade

    Upgrade ajv (Another JSON Schema Validator) to a version that resolves this vulnerability.

    Fixed in 8.18.0
  5. Compensating control

    If you cannot upgrade immediately, do not enable the `ajv` `$data` option for dynamic schema validation, since vulnerability occurs when `$data` is enabled.

Event History

Feb 11, 2026
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via Red Hat·07:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:15 PM
Description
Advisory Published
via GitHub·09:30 PM
Data Sourced
via GitHub·09:30 PM
DescriptionWeaknessAffected Software
Feb 12, 2026
Data Sourced
via NVD·04:16 PM
SeverityWeakness
Feb 17, 2026
Updated
via GitHub·06:13 PM
Description
Feb 20, 2026
Updated
via GitHub·08:59 PM
Affected Software
Feb 23, 2026
Data Sourced
via MITRE·08:42 AM
SeverityWeakness
Updated
via MITRE·08:44 AM
Description
Updated
via NVD·09:16 AM
DescriptionSeverityWeakness
Updated
via GitHub·10:40 PM
Weakness
Mar 2, 2026
Updated
via NVD·09:16 PM
Description
Mar 3, 2026
Updated
via MITRE·05:25 PM
Description
Apr 6, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jun 30, 2026
Updated
via NVD·05:17 AM
SeverityWeakness
Jul 16, 2026
Updated
via NVD·12:16 PM
SeverityWeakness
Sep 26, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 3, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 8, 2026
Updated
via IBM·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-69873?

CVE-2025-69873 is classified as a high-severity vulnerability due to its potential for Regular Expression Denial of Service (ReDoS).

2

What software versions are affected by CVE-2025-69873?

CVE-2025-69873 affects ajv versions up to and including 8.17.1.

3

How do I fix CVE-2025-69873?

To mitigate CVE-2025-69873, upgrade ajv to version 8.18.0 or later.

4

What type of vulnerability is CVE-2025-69873?

CVE-2025-69873 is a Regular Expression Denial of Service (ReDoS) vulnerability.

5

What enables the vulnerability in CVE-2025-69873?

The vulnerability in CVE-2025-69873 is enabled when the '$data' option is activated in ajv.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203