CyberRota Analysis
AI-GeneratedThe fast-xml-parser library versions 5.9.3 to 5.10.1 are vulnerable to a denial-of-service attack due to improper handling of multiple DOCTYPE declarations, which can lead to excessive CPU usage, memory exhaustion, and process termination. This vulnerability can be exploited by processing a specially crafted XML document, making it critical for developers and organizations using this library to upgrade to version 5.10.1 or later to mitigate potential disruptions. Prioritization is essential for those relying on this library in performance-sensitive 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
fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. From 5.9.3 until 5.10.1, src/xmlparser/OrderedObjParser.js processes multiple DOCTYPE declarations within a single XML document and passes each declaration's entities through addInputEntities(). addInputEntities() resets maxTotalExpansions and maxExpandedLength every time it is called, allowing additional DOCTYPE declarations to repeatedly reset the configured entity-expansion limits during one parse operation. A crafted XML document can then cause excessive CPU use, event-loop blocking, memory exhaustion, and process termination. This issue is fixed in version 5.10.1.