GHSA-mrx9-2rrp-rhpx: Duplicate Advisory Joi: Quadratic Regular-expression Backtracking Vulnerability
HIGHGHSA-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
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).
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.
npm install joi@Latest secure release
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
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?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-mrx9-2rrp-rhpx?
Is joi affected?
What is the CVSS score of GHSA-mrx9-2rrp-rhpx?
What CWE is associated with GHSA-mrx9-2rrp-rhpx?
How can I check npm dependencies for GHSA-mrx9-2rrp-rhpx?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}