GHSA-2g4f-4pwh-qvx6

Suggest an improvement
Source
https://github.com/advisories/GHSA-2g4f-4pwh-qvx6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-2g4f-4pwh-qvx6/GHSA-2g4f-4pwh-qvx6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2g4f-4pwh-qvx6
Aliases
  • CVE-2025-69873
Downstream
Related
Published
2026-02-11T21:30:39Z
Modified
2026-02-20T21:26:03.466898Z
Severity
  • 5.5 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
ajv has ReDoS when using `$data` option
Details

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.

Database specific
{
    "nvd_published_at": "2026-02-11T19:15:50Z",
    "github_reviewed_at": "2026-02-17T16:38:57Z",
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-400"
    ],
    "github_reviewed": true
}
References

Affected packages

npm / ajv

Package

Affected ranges

Type
SEMVER
Events
Introduced
7.0.0-alpha.0
Fixed
8.18.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-2g4f-4pwh-qvx6/GHSA-2g4f-4pwh-qvx6.json"

npm / ajv

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.14.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-2g4f-4pwh-qvx6/GHSA-2g4f-4pwh-qvx6.json"