{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "17.13.4"
              },
              {
                "introduced": "18.0.0"
              },
              {
                "fixed": "18.2.1"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "55b0096347c8bd963a9fc04060985344bb69f9ad"
            },
            {
              "fixed": "3d3ab76fad0170e97bdd72e96be7ce32330cde8f"
            },
            {
              "fixed": "048fe05b82355f445c5aab7881d836b2e9811296"
            },
            {
              "fixed": "97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74"
            },
            {
              "fixed": "fc146a628ab9cc250854407722d9f8738c9548e7"
            }
          ],
          "repo": "https://github.com/hapijs/joi",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-q7cg-457f-vx79"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-248"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48038.json"
  },
  "details": "joi is a schema description language and data validator for JavaScript. Prior to 17.13.4 and 18.2.1, denial of service is possible via an untrapped exception in services validating user-supplied JSON or object input with recursive link() schemas. When validate() is called without try/catch in a request handler, deeply nested input can trigger an unhandled RangeError and potentially crash the process; lower-impact paths using validateAsync() or try/catch produce a RangeError instead of a structured ValidationError. This issue is fixed in versions 17.13.4 and 18.2.1.",
  "id": "CVE-2026-48038",
  "modified": "2026-08-07T11:31:26.923051064Z",
  "published": "2026-07-14T19:24:32.644Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48038.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-48038"
    },
    {
      "type": "FIX",
      "url": "https://github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74"
    },
    {
      "type": "FIX",
      "url": "https://github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7"
    },
    {
      "type": "FIX",
      "url": "https://github.com/hapijs/joi/pull/3113"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "joi: Uncaught RangeError on deeply nested input through recursive `link()` schemas"
}