Vulnerabilities |
8 via 32 paths |
|---|---|
Dependencies |
413 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
- Vulnerable module: uri-js
- Introduced through: zwave-js@15.32.4
Detailed paths
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/cc@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/testing@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/cc@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/testing@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/testing@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/cc@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
Overview
uri-js is a RFC 3986/3987 compliant, scheme extendable URI/IRI parsing/validating/resolving library for JavaScript.
Affected versions of this package are vulnerable to Infinite loop via the removeDotSegments function, which loops infinitely when a path segment begins with Unicode line separators (U+2028) or paragraph separators (U+2029). An attacker can trigger this by passing such a path to removeDotSegments directly, or through the normalize or resolve functions with IRI handling enabled, blocking the Node.js event loop indefinitely until heap exhaustion.
Remediation
There is no fixed version for uri-js.
References
high severity
- Vulnerable module: extract-zip
- Introduced through: extract-zip@2.0.1
Detailed paths
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › extract-zip@2.0.1
Overview
extract-zip is an unzip a zip file into a directory using 100% javascript
Affected versions of this package are vulnerable to Directory Traversal via the extraction process. An attacker can access or modify arbitrary files by crafting a malicious zip archive containing symlinks that point outside the intended extraction directory.
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e is the URL encoded version of . (dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip.
One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
There is no fixed version for extract-zip.
References
high severity
- Vulnerable module: extract-zip
- Introduced through: extract-zip@2.0.1
Detailed paths
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › extract-zip@2.0.1
Overview
extract-zip is an unzip a zip file into a directory using 100% javascript
Affected versions of this package are vulnerable to Directory Traversal through the archive extraction logic in index.js. An attacker can write a file outside the destination directory by supplying an archive with two entries that reuse the same path: a symlink pointing outside the extraction root, followed by a regular file for that same name. During extraction, the code only checked the parent directory of each entry and then wrote the file through the existing final path component, so the second entry followed the planted symlink and overwrote the symlink target. This can corrupt or replace files writable by the process running extract-zip.
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e is the URL encoded version of . (dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip.
One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
A fix was pushed into the master branch but not yet published.
References
medium severity
new
- Vulnerable module: minimatch
- Introduced through: archiver@7.0.1
Detailed paths
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › archiver@7.0.1 › archiver-utils@5.0.2 › glob@10.5.0 › minimatch@9.0.9
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › archiver@7.0.1 › zip-stream@6.0.1 › archiver-utils@5.0.2 › glob@10.5.0 › minimatch@9.0.9
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › archiver@7.0.1 › readdir-glob@1.1.3 › minimatch@5.1.9
Overview
minimatch is a minimal matching utility.
Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) in the firstPhasePreProcess method, where the **/.. transform clones a globParts entry and pushes the clone back onto the same array inside a do...while (didSomething) fixpoint loop. An attacker can exhaust CPU and memory by supplying a glob pattern whose **/.. sequences regenerate entries during preprocessing, which secondPhasePreProcess then compares in an O(n^2) pairwise partsMatch pass over the expanded set. Exploitation requires the pattern to be parsed with optimizationLevel set to 2 or higher.
Remediation
Upgrade minimatch to version 11.0.1 or higher.
References
medium severity
- Vulnerable module: uri-js
- Introduced through: zwave-js@15.32.4
Detailed paths
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/cc@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/testing@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/cc@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/testing@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/testing@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/cc@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
Overview
uri-js is a RFC 3986/3987 compliant, scheme extendable URI/IRI parsing/validating/resolving library for JavaScript.
Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via pctDecChars(), which decodes invalid and overlong percent-encoded sequences into ASCII metacharacters. An attacker can craft percent-encoded payloads to bypass platform decoder validation and inject path traversal or CRLF sequences that downstream consumers process without filtering.
Remediation
There is no fixed version for uri-js.
References
medium severity
new
- Vulnerable module: express-rate-limit
- Introduced through: express-rate-limit@7.5.1
Detailed paths
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › express-rate-limit@7.5.1Remediation: Upgrade to express-rate-limit@8.7.2.
Overview
express-rate-limit is a Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.
Affected versions of this package are vulnerable to Improper Enforcement of Behavioral Workflow via MemoryStore.resetClient mutating the shared resetTime Date object in place when skipFailedRequests or skipSuccessfulRequests is enabled. MemoryStore.increment returns the stored Client object directly, so the middleware's resetTime reference and the store's client.resetTime point to the same Date. When a subsequent request triggers resetClient, it calls client.resetTime.setTime(now + windowMs), advancing that shared Date forward. An earlier request still in flight then finishes or disconnects after the window boundary, reads the now-updated reset time, passes the stale-window guard at rate-limit.ts:545-547, and decrements the new window's hit count. A client that keeps requests in flight across a window boundary can thereby obtain up to one additional configured limit worth of requests in the new window as a one-off burst.
Note: This is only exploitable when the default MemoryStore is used together with the skipFailedRequests or skipSuccessfulRequests option.
Remediation
Upgrade express-rate-limit to version 8.7.2 or higher.
References
medium severity
new
- Vulnerable module: glob
- Introduced through: archiver@7.0.1
Detailed paths
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › archiver@7.0.1 › archiver-utils@5.0.2 › glob@10.5.0
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › archiver@7.0.1 › zip-stream@6.0.1 › archiver-utils@5.0.2 › glob@10.5.0
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the walkCB, walkCB2, walkCBSync, and walkCB2Sync methods of src/walker.ts, where each abort branch calls cb() without returning. An attacker can keep a walk consuming filesystem I/O and CPU after it has already been aborted, by driving a traversal that the caller tries to bound, because execution continues past the abort into processPatterns(), readdirCB(), and recursive walkCB2() calls. This affects only callers that rely on the signal option or AbortSignal.timeout() to cancel a walk, and applies to both glob() and globStream().
Remediation
Upgrade glob to version 13.0.7, 14.0.2 or higher.
References
medium severity
- Vulnerable module: uri-js
- Introduced through: zwave-js@15.32.4
Detailed paths
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/cc@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/testing@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/cc@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/testing@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
-
Introduced through: zwave-js-ui@zwave-js/zwavejs2mqtt › zwave-js@15.32.4 › @zwave-js/testing@15.32.4 › @zwave-js/serial@15.32.4 › @zwave-js/cc@15.32.4 › @zwave-js/host@15.32.4 › @zwave-js/config@15.32.4 › eslint@10.16.0 › ajv@6.15.0 › uri-js@4.4.1
Overview
uri-js is a RFC 3986/3987 compliant, scheme extendable URI/IRI parsing/validating/resolving library for JavaScript.
Affected versions of this package are vulnerable to Uncaught Exception in the parse() function of src/schemes/mailto.ts, whose to branch calls hfield[1].split(",") directly, while the subject, body, and default branches all route through unescapeComponent(), which short-circuits on a missing value. An attacker can crash the process by supplying a mailto URI whose query carries a bare to token with no =value, such as mailto:?to, so splitting on = yields a one element array and the undefined second element is dereferenced. This requires the application to pass an attacker-influenced string to URI.parse(), URI.resolve(), URI.normalize(), or URI.equal(), none of which wrap the scheme handler in a try/catch, and whether the throw terminates the process or only fails the one request depends on the host's own error handling.
Remediation
There is no fixed version for uri-js.