@homebridge-wyze-node24/homebridge-wyze-node24 1.1.7 → 1.1.9

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.
Files changed (2) hide show
  1. package/package.json +9 -2
  2. package/src/security.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebridge-wyze-node24/homebridge-wyze-node24",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Wyze Smart Home plugin for Homebridge (Node.js 24 compatible)",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -59,5 +59,12 @@
59
59
  "type": "github",
60
60
  "url": "https://account.venmo.com/u/Rhett-Trappman-1"
61
61
  }
62
- ]
62
+ ],
63
+ "pnpm": {
64
+ "overrides": {
65
+ "undici@<=6.24.0": "6.24.0",
66
+ "crypto-js@<=4.2.0": "4.2.0",
67
+ "axios@<=1.13.5": "1.13.5"
68
+ }
69
+ }
63
70
  }
package/src/security.js CHANGED
@@ -133,6 +133,9 @@ function wrapLogger(log) {
133
133
  }
134
134
 
135
135
  function loadSecretsFromFile(secretsFile, log) {
136
+ if (secretsFile.includes('..') || path.isAbsolute(secretsFile)) {
137
+ throw new Error('Invalid file path')
138
+ }
136
139
  const stat = fs.statSync(secretsFile)
137
140
  // Must not be readable/writable by group/others
138
141
  if ((stat.mode & 0o077) !== 0) {