Disclosure summary
### Impact Any application that validates a user-supplied string with `Joi.string().isoDate()` can be stalled by a single request. One of the regular expressions the rule runs over the input was unanchored, so a valid ISO date followed by a long run of fractional-second digits made the regex engine restart its search from every position in the string, costing time proportional to the square of the input length. 64 KB of digits costs about 1.4 s and 256 KB about 22 s. ### Patches Upgrade to version 17.13.7 or 18.2.6 depending on your current major version. ### Workarounds None except capping the length of the string before it reaches joi.
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
GitHub Reviewed Security Advisories · GHSA-6h2x-m376-mqjq
Open original source · Updated Oct 05, 2026
joi: Quadratic regular-expression backtracking in `Joi.string().isoDate()`
Source severity: HIGH / 8.7
| Ecosystem | Package | Affected range | First patched |
|---|---|---|---|
| npm | joi | >= 17.2.0, < 17.13.7 | 17.13.7 |
| npm | joi | >= 18.0.0, < 18.2.6 | 18.2.6 |
Original records & references
- NIST NVD record
- CVE Program record
- github.com — Reviewed advisory
PUBLISHED 2026-09-29T14:07:42-04:00
MODIFIED 2026-10-05T19:31:12-04:00
INGESTED 2026-10-06T11:45:33-04:00