Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2025-69873 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://access.redhat.com/errata/RHSA-2026:10093 redhat-SADP
https://access.redhat.com/errata/RHSA-2026:13512 redhat-SADP
https://access.redhat.com/errata/RHSA-2026:14774 redhat-SADP
https://access.redhat.com/errata/RHSA-2026:15091 redhat-SADP
https://access.redhat.com/errata/RHSA-2026:16874 redhat-SADP

see all 37 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-1333Inefficient Regular Expression Complexityredhat-SADP
CWE-1333Inefficient Regular Expression Complexity[email protected]
CWE-400Uncontrolled Resource ConsumptionCISA-ADP

Affected Products

ProductVersions
ajv
<= 8.17.1 (semver)

CPE

  • cpe:2.3:a:ajv:ajv:*:*:*:*:*:*:*:*

Remediation

  • Workaround:low effort

    Disable the $data option in ajv's configuration. This will prevent the use of dynamic patterns and eliminate the attack surface.

  • Mitigation:low effort

    Use the safe-regex library to validate user-supplied regex patterns before they are passed to ajv. Only allow patterns that are deemed safe.

  • Mitigation:low effort

    Switch to the RE2 regex engine, which guarantees linear-time evaluation and prevents backtracking. This can be configured in ajv.

Change History

27 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2025-69873
NVD Published Date:
Feb 11, 2026
NVD Last Modified:
Sep 10, 2026
Source:
[email protected]
CVE-2025-69873 Details - Not Deferred