Advisories · LOUAI-2026-001

Prototype pollution and uncontrolled recursion in plist for Node.js

Two flaws in the plist package let a crafted property list (plist) passed to plist.parse() pollute object prototypes (5.0.0 to 5.1.0) or crash the process with a stack overflow on a self-referencing binary plist (5.0.0). Both are fixed in 5.1.1.

Remediation

Upgrade to plist 5.1.1 or later. Until you can, do not pass plists from untrusted sources to plist.parse().

Details

Since 5.0.0, plist.parse() inspects its input and chooses a parser:

Prototype pollution. In 2022 the XML parser was changed to reject a dictionary key named __proto__ (CVE-2022-22912). The binary and OpenStep parsers added in 5.0.0 did not perform that check, so a crafted binary or OpenStep plist could set the prototype of the objects parse() returns, reintroducing the flaw the 2022 fix closed. 5.1.1 rejects __proto__ and non-string dictionary keys in both parsers.

Uncontrolled recursion. In 5.0.0, a binary plist containing an object that refers to itself made the binary parser recurse until the call stack overflowed. 5.0.1 rejects circular references.

Impact

An application on an affected version is exposed if it calls plist.parse() on input it does not control, such as an uploaded file, a network response, or a file inside a project it opens. Prototype pollution can change how other code in the application behaves; the stack overflow can crash a process that does not catch the error.

Timeline

References

We are not publishing proof-of-concept inputs.