plist 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/History.md +17 -0
- package/dist/plist-parse.js +4138 -4132
- package/dist/plist.js +6421 -6415
- package/lib/parse.js +6 -0
- package/package.json +2 -2
package/lib/parse.js
CHANGED
|
@@ -153,6 +153,12 @@ function parsePlistXML (node) {
|
|
|
153
153
|
if (isEmptyNode(node)) {
|
|
154
154
|
return '';
|
|
155
155
|
}
|
|
156
|
+
|
|
157
|
+
invariant(
|
|
158
|
+
node.childNodes[0].nodeValue !== '__proto__',
|
|
159
|
+
'__proto__ keys can lead to prototype pollution. More details on CVE-2022-22912'
|
|
160
|
+
);
|
|
161
|
+
|
|
156
162
|
return node.childNodes[0].nodeValue;
|
|
157
163
|
} else if (node.nodeName === 'string') {
|
|
158
164
|
res = '';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plist",
|
|
3
3
|
"description": "Mac OS X Plist parser/builder for Node.js and browsers",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.5",
|
|
5
5
|
"author": "Nathan Rajlich <nathan@tootallnate.net>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Hans Huebner <hans.huebner@gmail.com>",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"xmlbuilder": "^9.0.7"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"browserify": "^
|
|
32
|
+
"browserify": "^17.0.0",
|
|
33
33
|
"mocha": "^5.2.0",
|
|
34
34
|
"multiline": "^1.0.2",
|
|
35
35
|
"zuul": "3.10.1"
|