Back to list

joi: Quadratic regular-expression backtracking in `Joi.string().isoDate()` — GHSA-6H2X-M376-MQJQ

GitHub · GitHub · GHSA-6H2X-M376-MQJQ

ID
GHSA-6H2X-M376-MQJQ
Date
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
7.5

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…

Timeline

Published by source
2026-09-29

Risk context

  • Reported severity or threat level: high.
  • Reported CVSS score: 7.5 out of 10.
  • Review exposure for the affected product or family: npm: joi.

Product

npm: joi

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Evidence and provenance

Canonical advisory ID
GHSA-6H2X-M376-MQJQ
Source
GitHub
Vendor
GitHub
Published by source
2026-09-29
Last source activity
2026-09-29
Curated by
hlukh.ch

Related advisories and connections

These advisories are connected by shared CVE, product, vendor, source, or time signals.