devalue is vulnerable to Denial of Service (DoS)
53
Medium Risk
The parse function reconstructs a value graph from a flat array of nodes that reference one another by numeric index. When parsing untrusted input, the code dereferences those indices without checking that they fall inside the parsed values array, so a crafted payload can reference out-of-bounds indices and force the parser to repeatedly switch between different array representations. This makes the parsing work grow quadratically with the payload size, so a small malicious string can hang the process and deny service. The fix validates each index against the values array length and throws Invalid input for any index that is out of range.
You are affected if you are using a version that falls within the vulnerable range and your application parses untrusted or externally-controlled input with parse.
devalue is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 5.9.1.
Upgrade the devalue library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.