🔍 CVE-2026-118772

7.5
CVSS Score
HIGH
2026-10-29
2026-10-30 19:37
✅ 완료

🇰🇷 한글 설명

Joi 라이브러리의 Joi.string().email({ multiple: true }) 규칙에서 구분자 정규식의 선행 공백 수량자가 구분자 없는 긴 공백 구간의 모든 위치에서 재시도되어, String.prototype.split 처리 중 이차 시간 복잡도가 발생합니다. 17.1.1~17.13.9 및 18.3.1 버전이 영향을 받으며, 17.13.9 및 18.3.1에서 수정되었습니다. abortEarly: false 설정 시 .max() 규칙만으로는 방어가 충분하지 않습니다.

💡 쉬운 설명

공격자가 공백이 매우 긴 이메일 입력값을 보내면 서버가 그 값을 처리하는 데 수 초 동안 멈출 수 있습니다. 이 동안 다른 요청을 처리하지 못해 서비스가 느려지거나 마비될 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Node.js 기반 Joi 17.1.1~17.13.8 및 18.0.0~18.3.0 버전을 multiple 이메일 검증에 사용하는 애플리케이션

⚔️ 공격 벡터

공격자가 구분자 없이 매우 긴 공백 문자열을 포함한 값을 multiple 옵션이 켜진 이메일 필드에 전송하여 이벤트 루프를 장시간 차단

🛡️ 대응 방법

joi를 17.13.9 이상 또는 18.3.1 이상으로 업그레이드하고, 검증 전에 입력 길이를 엄격히 제한

🔧 검증 코드

출력된 joi 버전이 17.13.9 미만(17.x) 또는 18.3.1 미만(18.x)이면 취약하며, 해당 버전 이상이면 패치된 상태입니다.

Shell / Script
npm ls joi 2>/dev/null | grep joi

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Node.js