GHSA-mrx9-2rrp-rhpx: Duplicate Advisory Joi: Quadratic Regular-expression Backtracking Vulnerability

HIGH
CVSS 7.5
CWE-1333
Published
Advisory Summary

GHSA-mrx9-2rrp-rhpx is a HIGH (CVSS 7.5) joi: quadratic regular-expression backtracking vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves joi: quadratic regular-expression backtracking in `joi.string().isodate()`. Remediation is available in the latest vendor maintenance releases.

GHSA-mrx9-2rrp-rhpx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mrx9-2rrp-rhpx
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Duplicate Advisory
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix GHSA-mrx9-2rrp-rhpx

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

joi fixed: Latest secure release
npm install joi@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls joi

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-mrx9-2rrp-rhpx, inspect your project dependencies using npm:

npm ls joi

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls joi command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-6h2x-m376-mqjq. This link is maintained to preserve external references. ## Original Description joi (npm package `joi`, hapi.js) versions >=17.2.0 <17.13.7 and >=18.0.0 <18.2.6 are vulnerable to regular expression denial of service in the `Joi.string().isoDate()` validation rule. One of the regular expressions the rule applies to the input is unanchored, so a valid ISO date followed by a long run of fractional-second digits causes the regex engine to restart its search from every position in the string, yielding time proportional to the square of the input length (about 1.4 s for 64 KB of digits and about 22 s for 256 KB). A remote attacker who can supply a string to an isoDate validation can stall the application with a single request. Fixed in 17.13.7 and 18.2.6; as a workaround, cap the length of the string before it reaches joi.

GHSA-mrx9-2rrp-rhpx Affected Duplicate Advisory Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
joi
npm
≥ 18.0.0

References

Frequently Asked Questions

What is GHSA-mrx9-2rrp-rhpx?
GHSA-mrx9-2rrp-rhpx is a security vulnerability in Duplicate Advisory involving joi: Quadratic regular-expression backtracking in `Joi.string().isoDate()` under CWE-1333: Inefficient Regular Expression Complexity.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to current release patches across affected packages: joi.
What version fixes GHSA-mrx9-2rrp-rhpx?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is joi affected?
Yes, joi is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-mrx9-2rrp-rhpx?
GHSA-mrx9-2rrp-rhpx has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with GHSA-mrx9-2rrp-rhpx?
GHSA-mrx9-2rrp-rhpx is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check npm dependencies for GHSA-mrx9-2rrp-rhpx?
Run the dependency tree command: 'npm ls joi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mrx9-2rrp-rhpx",
  "modified" : "2026-10-05T23:30:50Z",
  "published" : "2026-09-17T00:31:27Z",
  "withdrawn" : "2026-10-05T23:30:50Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: joi: Quadratic regular-expression backtracking in `Joi.string().isoDate()`",
  "details" : "## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-6h2x-m376-mqjq. This link is maintained to preserve external references.\n\n## Original Description\njoi (npm package `joi`, hapi.js) versions >=17.2.0 <17.13.7 and >=18.0.0 <18.2.6 are vulnerable to regular expression denial of service in the `Joi.string().isoDate()` validation rule. One of the regular expressions the rule applies to the input is unanchored, so a valid ISO date followed by a long run of fractional-second digits causes the regex engine to restart its search from every position in the string, yielding time proportional to the square of the input length (about 1.4 s for 64 KB of digits and about 22 s for 256 KB). A remote attacker who can supply a string to an isoDate validation can stall the application with a single request. Fixed in 17.13.7 and 18.2.6; as a workaround, cap the length of the string before it reaches joi.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "joi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "18.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 18.2.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/hapijs/joi/security/advisories/GHSA-6h2x-m376-mqjq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-92599"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/joi-before-17.13.7-and-18.2.6-redos-via-isodate"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-05T23:30:50Z",
    "nvd_published_at" : "2026-09-16T22:18:30Z"
  }
}