Skip to content
High 7.5

joiの脆弱性、細工した入力でサービス妨害の恐れ

CVE-2026-118772 First seen on SecPulse

Summary

joiのstring().email({ multiple: true })に、入力処理の計算量が急増する脆弱性(CVE-2026-118772)が見つかりました。細工された長い空白を含む値を一度送られるだけで、Node.jsのイベントループが数秒間ふさがれるおそれがあります。影響を受けるのは17.1.1から17.13.9まで、および18.3.1で、修正版の17.13.9と18.3.1が公開されています。該当するバージョンを使っている場合は、修正版への更新を優先してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

joiのstring().email({ multiple: true })に、入力処理の計算量が急増する脆弱性(CVE-2026-118772)が見つかりました。細工された長い空白を含む値を一度送られるだけで、Node.jsのイベントループが数秒間ふさがれるおそれがあります。影響を受けるのは17.1.1から17.13.9まで、および18.3.1で、修正版の17.13.9と18.3.1が公開されています。該当するバージョンを使っている場合は、修正版への更新を優先してください。

Affected packages

PackageAffected → Fixed
hapijsjoi —
@hapijoi —
npmjoi
≥ 18.0.0, < 18.3.1→ 18.3.1
npm@hapi/joi
16.0.0 – 17.1.1→ Not listed
Original description The description as published by the source.

joi is a schema description language and data validator for JavaScript. From 17.1.1 until 17.13.9 and 18.3.1, the Joi.string().email({ multiple: true }) rule uses a separator regular expression whose leading whitespace quantifier is retried at every position in a long whitespace run that contains no separator, causing quadratic work during String.prototype.split. The behavior applies to the default separator and every custom separator. Applications that validate attacker-controlled values with the multiple option and no effective prior length limit can have the Node.js event loop blocked for seconds by one request, preventing other work. A .max() rule is not sufficient when abortEarly: false allows the email rule to run after the maximum-length check fails. This vulnerability is fixed in versions 17.13.9 and 18.3.1.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details