Vulnerabilities |
10 via 17 paths |
|---|---|
Dependencies |
505 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
- Vulnerable module: braces
- Introduced through: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › webpack-dev-server@5.2.7 › chokidar@3.6.0 › braces@3.0.3
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › webpack-dev-server@5.2.7 › http-proxy-middleware@2.0.11 › micromatch@4.0.8 › braces@3.0.3
Overview
braces is a Bash-like brace expansion, implemented in JavaScript.
Affected versions of this package are vulnerable to Uncontrolled Recursion in the recursive AST walkers, which lack depth guards. An attacker can supply deeply nested brace patterns that stay within the character limit to exhaust the call stack and crash the Node.js process with an uncaught RangeError.
Remediation
There is no fixed version for braces.
References
high severity
- Vulnerable module: uri-js
- Introduced through: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › powerbi-visuals-webpack-plugin@4.1.0 › ajv@6.12.3 › uri-js@4.4.1
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › extra-watch-webpack-plugin@1.0.3 › schema-utils@0.4.7 › 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: ajv
- Introduced through: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › powerbi-visuals-webpack-plugin@4.1.0 › ajv@6.12.3Remediation: Upgrade to powerbi-visuals-tools@7.0.3.
Overview
ajv is an Another JSON Schema Validator
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper validation of the pattern keyword when combined with $data references. An attacker can cause the application to become unresponsive and exhaust CPU resources by submitting a specially crafted regular expression payload.
Note:
This is only exploitable if the $data option is enabled.
PoC
const Ajv = require('ajv');
// Vulnerable configuration — $data enables runtime pattern injection
const ajv = new Ajv({ $data: true });
const schema = {
type: 'object',
properties: {
pattern: { type: 'string' },
value: {
type: 'string',
pattern: { $data: '1/pattern' } // Pattern comes from the data itself
}
}
};
const validate = ajv.compile(schema);
// Malicious payload — both the pattern and the triggering input
const maliciousPayload = {
pattern: '^(a|a)*$', // Catastrophic backtracking pattern
value: 'a'.repeat(30) + 'X' // 30 'a's followed by 'X' to force full backtracking
};
console.time('attack');
validate(maliciousPayload); // Blocks the entire Node.js process for ~44 seconds
console.timeEnd('attack');
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade ajv to version 6.14.0, 8.18.0 or higher.
References
medium severity
new
- Vulnerable module: minimatch
- Introduced through: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › @typescript-eslint/parser@8.72.1 › @typescript-eslint/typescript-estree@8.72.1 › minimatch@10.2.6
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › eslint-plugin-powerbi-visuals@1.1.1 › @typescript-eslint/parser@8.72.1 › @typescript-eslint/typescript-estree@8.72.1 › minimatch@10.2.6
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › extra-watch-webpack-plugin@1.0.3 › glob@7.2.3 › minimatch@3.1.5
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: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › powerbi-visuals-webpack-plugin@4.1.0 › ajv@6.12.3 › uri-js@4.4.1
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › extra-watch-webpack-plugin@1.0.3 › schema-utils@0.4.7 › 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
- Vulnerable module: elliptic
- Introduced through: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › crypto-browserify@3.12.1 › browserify-sign@4.2.6 › elliptic@6.6.1
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › crypto-browserify@3.12.1 › create-ecdh@4.0.4 › elliptic@6.6.1
Overview
elliptic is a fast elliptic-curve cryptography implementation in plain javascript.
Affected versions of this package are vulnerable to Use of a Cryptographic Primitive with a Risky Implementation due to the incorrect computation of the byte-length of k value with leading zeros resulting in its truncation. An attacker can obtain the secret key by analyzing both a faulty signature generated by a vulnerable implementation and a correct signature for the same inputs.
Note:
There is a distinct but related issue CVE-2024-48948.
Remediation
There is no fixed version for elliptic.
References
medium severity
- Vulnerable module: uuid
- Introduced through: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › webpack-dev-server@5.2.7 › sockjs@0.3.24 › uuid@8.3.2
Overview
uuid is a RFC4122 (v1, v4, and v5) compliant UUID library.
Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to accepting external output buffers but not rejecting out-of-range writes (small buf or large offset). This inconsistency allows silent partial writes into caller-provided buffers.
PoC
cd /home/StrawHat/uuid
npm ci
npm run build
node --input-type=module -e "
import {v4,v5,v6} from './dist-node/index.js';
const ns='6ba7b810-9dad-11d1-80b4-00c04fd430c8';
for (const [name,fn] of [
['v4',()=>v4({},new Uint8Array(8),4)],
['v5',()=>v5('x',ns,new Uint8Array(8),4)],
['v6',()=>v6({},new Uint8Array(8),4)],
]) {
try { fn(); console.log(name,'NO_THROW'); }
catch(e){ console.log(name,'THREW',e.name); }
}"
Remediation
Upgrade uuid to version 11.1.1, 14.0.0 or higher.
References
medium severity
- Vulnerable module: inflight
- Introduced through: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › extra-watch-webpack-plugin@1.0.3 › glob@7.2.3 › inflight@1.0.6
Overview
Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime via the makeres function due to improperly deleting keys from the reqs object after execution of callbacks. This behavior causes the keys to remain in the reqs object, which leads to resource exhaustion.
Exploiting this vulnerability results in crashing the node process or in the application crash.
Note: This library is not maintained, and currently, there is no fix for this issue. To overcome this vulnerability, several dependent packages have eliminated the use of this library.
To trigger the memory leak, an attacker would need to have the ability to execute or influence the asynchronous operations that use the inflight module within the application. This typically requires access to the internal workings of the server or application, which is not commonly exposed to remote users. Therefore, “Attack vector” is marked as “Local”.
PoC
const inflight = require('inflight');
function testInflight() {
let i = 0;
function scheduleNext() {
let key = `key-${i++}`;
const callback = () => {
};
for (let j = 0; j < 1000000; j++) {
inflight(key, callback);
}
setImmediate(scheduleNext);
}
if (i % 100 === 0) {
console.log(process.memoryUsage());
}
scheduleNext();
}
testInflight();
Remediation
There is no fixed version for inflight.
References
medium severity
- Vulnerable module: uri-js
- Introduced through: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › powerbi-visuals-webpack-plugin@4.1.0 › ajv@6.12.3 › uri-js@4.4.1
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › extra-watch-webpack-plugin@1.0.3 › schema-utils@0.4.7 › 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.
References
medium severity
- Module: domain-browser
- Introduced through: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › domain-browser@5.7.0
Artistic-2.0 license
low severity
- Vulnerable module: sirv
- Introduced through: powerbi-visuals-tools@5.6.0
Detailed paths
-
Introduced through: @microsoft/powerbi-visuals-chordchart@Microsoft/powerbi-visuals-chord › powerbi-visuals-tools@5.6.0 › webpack-bundle-analyzer@4.10.2 › sirv@2.0.4
Overview
sirv is a The optimized & lightweight middleware for serving requests to static assets
Affected versions of this package are vulnerable to Directory Traversal via the viaLocal function, which uses a dirname prefix. An attacker can access files outside the intended public directory by sending crafted requests that exploit symlinks and naming similarities, bypassing access restrictions.
Note: This is only exploitable if the server is explicitly exposed to the network using the --host flag or the server.host configuration option, the public directory feature is enabled, and there are symlinks in a public 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
Upgrade sirv to version 3.0.2 or higher.