← Back to CVE Explorer

CVE-2026-48038

Full vulnerability record from the local CVENow database.

Description

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.

Severity
MEDIUM
CVSS score
5.3 (v3.1)
Vulnerability status
Awaiting Analysis
Source identifier
Published
2026-07-14 20:17:05.563000
Last modified
2026-10-24 21:10:00.130000
View original CVE JSON
{
  "id": "CVE-2026-48038",
  "sourceIdentifier": "[email protected]",
  "published": "2026-07-14T20:17:05.563",
  "lastModified": "2026-10-24T21:10:00.130",
  "vulnStatus": "Awaiting Analysis",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "joi es un lenguaje de descripción de esquemas y un validador de datos para JavaScript. Antes de las versiones 17.13.4 y 18.2.1, es posible la denegación de servicio a través de una excepción no capturada en servicios que validan entradas JSON u objetos proporcionados por el usuario con esquemas link() recursivos. Cuando se llama a validate() sin try/catch en un gestor de solicitudes, una entrada profundamente anidada puede desencadenar un RangeError no manejado y potencialmente bloquear el proceso; las rutas de menor impacto que usan validateAsync() o try/catch producen un RangeError en lugar de un ValidationError estructurado. Este problema está solucionado en las versiones 17.13.4 y 18.2.1."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "hapijs",
          "product": "joi",
          "versions": [
            {
              "version": "< 17.13.4",
              "status": "affected"
            },
            {
              "version": ">= 18.0.0, < 18.2.1",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
          "baseScore": 5.3,
          "baseSeverity": "MEDIUM",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "NONE",
          "availabilityImpact": "LOW"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 1.4
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-07-15T13:23:16.760424Z",
          "id": "CVE-2026-48038",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-248"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/hapijs/joi/pull/3113",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79",
      "source": "[email protected]"
    }
  ]
}