CyberRota Analysis
AI-GeneratedThe joi library for JavaScript is vulnerable to a denial of service attack due to an unhandled exception when validating deeply nested user-supplied JSON or object inputs with recursive link() schemas. This can lead to a process crash if the validate() function is called without appropriate error handling. Developers using affected versions prior to 17.13.4 and 18.2.1 should prioritize updating to mitigate potential disruptions in their applications.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
joi is a schema description language and data validator for JavaScript. Prior to 17.13.4 and 18.2.1, denial of service is possible via an untrapped exception in services validating user-supplied JSON or object input with recursive link() schemas. When validate() is called without try/catch in a request handler, deeply nested input can trigger an unhandled RangeError and potentially crash the process; lower-impact paths using validateAsync() or try/catch produce a RangeError instead of a structured ValidationError. This issue is fixed in versions 17.13.4 and 18.2.1.