← Back to Pull requests

chore(deps): update dependency ajv to v8.18.0 [security] #14324

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Nov 02, 2026 13:16 UTC
Author

This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| ajv (source) | 8.17.1 → 8.18.0 | !age | !confidence |

---

[!WARNING]

Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/5972) for more information.

---

ajv has ReDoS when using $data option


CVE-2025-69873 / GHSA-2g4f-4pwh-qvx6

<details>
<summary>More information</summary>

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.

Severity


  • CVSS Score: 5.5 / 10 (Medium)

  • Vector String: 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
  • References


  • https://nvd.nist.gov/vuln/detail/CVE-2025-69873

  • https://github.com/ajv-validator/ajv/pull/2586

  • https://github.com/ajv-validator/ajv/pull/2588

  • https://github.com/ajv-validator/ajv/pull/2590

  • https://github.com/github/advisory-database/pull/6991

  • https://github.com/ajv-validator/ajv/commit/720a23fa453ffae8340e92c9b0fe886c54cfe0d5

  • https://github.com/EthanKim88/ethan-cve-disclosures/blob/main/CVE-2025-69873-ajv-ReDoS.md

  • https://github.com/advisories/GHSA-2g4f-4pwh-qvx6

  • https://github.com/ajv-validator/ajv

  • https://github.com/ajv-validator/ajv/releases/tag/v6.14.0

  • https://github.com/ajv-validator/ajv/releases/tag/v8.18.0
  • This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
    </details>

    ---

    Release Notes

    <details>
    <summary>ajv-validator/ajv (ajv)</summary>

    v8.18.0

    Compare Source

    What's Changed

  • feat: allow tree-shaking by adding "sideEffects": false to package.json by @&#8203;josdejong in #&#8203;2480

  • fix: #&#8203;2482 Infinity and NaN serialise to null by @&#8203;jasoniangreen in #&#8203;2487

  • fix: small grammatical error in managing-schemas.md by @&#8203;monteiro-renato in #&#8203;2508

  • fix: typos in schema-language.md by @&#8203;monteiro-renato in #&#8203;2507

  • fix(pattern): use configured RegExp engine with $data keyword to mitigate ReDoS attacks (CVE-2025-69873) by @&#8203;epoberezkin in #&#8203;2586
  • New Contributors

  • @&#8203;josdejong made their first contribution in #&#8203;2480

  • @&#8203;monteiro-renato made their first contribution in #&#8203;2508
  • Full Changelog: <https://github.com/ajv-validator/ajv/compare/v8.17.1...v8.18.0>

    </details>

    ---

    Configuration

    📅 Schedule: (in timezone Europe/London)

  • Branch creation

  • - At any time (no schedule defined)
  • Automerge

  • - At any time (no schedule defined)

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    ♻ Rebasing: Never, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.

    ---

    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    This PR was generated by Mend Renovate. View the repository job log.
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE4OC4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJTZWN1cml0eSJdfQ==-->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: claude[bot] Review duration: 2m
    All Vouch review confidence checks passed
    Residual risk 0.62 = Change Risk (0.75) × (1 − Review Confidence (0.17)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.75 · 650 lines diff across 8 files
    0.75
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 16% · Reviewer familiarity: 35%
    16%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.075
    Real PR Conversation Timeline
    1 comments
    "Review active on #14324"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 17.0% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 75.2% (HIGH) · Higher = larger blast radius
    75.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 17.0% · Lower = rushed or shallow review
    17.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 62.4% · Moderate risk
    62.4%