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.
- Package: plist (npm)
- Affected: prototype pollution in 5.0.0, 5.0.1 and 5.1.0; uncontrolled recursion in 5.0.0
- Fixed in: 5.1.1 (both flaws); the self-reference recursion is also fixed in 5.0.1
- Not affected: 4.x (its
parse()uses only the XML parser, which carries the 2022 fix) - Weakness: CWE-1321 (prototype pollution); CWE-674 (uncontrolled recursion)
- CVE: request pending; added here when assigned
- Published: 2026-11-15
- Credit: found and reported by Louai; fixed by the plist maintainer
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:
- binary plists (bytes, or text starting with
bplist) go to a new binary parser; - OpenStep plists (text starting with
{or() go to a new OpenStep parser; - all other input goes to the XML 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
- 2026-09-10: reported privately to the maintainer
- 2026-11-06: 5.0.1 released, fixing the recursion
- 2026-11-09: 5.1.1 released, fixing the prototype pollution
- 2026-11-15: advisory published; CVE request pending
References
- plist 5.1.1 release notes
- plist 5.0.1 release notes
- GHSA-4cpg-3vgw-4877, the 2022 fix for the XML parser
We are not publishing proof-of-concept inputs.