Vulnerabilities |
4 via 4 paths |
|---|---|
Dependencies |
189 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
new
- Vulnerable module: open
- Introduced through: mssql@10.0.6
Detailed paths
-
Introduced through: kkrisz1.staruml-reverse-db@kkrisz1/staruml-reverse-db › mssql@10.0.6 › tedious@16.7.1 › @azure/identity@3.4.2 › open@8.4.2Remediation: Upgrade to mssql@11.0.0.
Overview
open is a cross platform package that opens stuff like URLs, files, executables.
Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the baseOpen function in index.js, which assembles a PowerShell Start-Process invocation by wrapping each argument as "`"${argument}`"" without escaping a double quote inside the value, and passes the target through with $ intact so PowerShell expands it as a variable reference. An attacker who controls the target or an entry in options.app.arguments can change the command PowerShell receives, either dropping text where a $name segment is expanded away or terminating the surrounding quoting with a ", which makes the call fail with no error surfaced to the caller. Reaching either case requires the calling application to pass a target or argument value that the attacker influences.
Note: This applies only where the PowerShell path is taken, meaning Windows, or WSL, where the target is first converted with convertWslPathToWindows and then handed to the same invocation. Callers on other platforms do not reach this assembly.
Remediation
Upgrade open to version 11.0.0 or higher.
References
high severity
new
- Vulnerable module: @azure/msal-node
- Introduced through: mssql@10.0.6
Detailed paths
-
Introduced through: kkrisz1.staruml-reverse-db@kkrisz1/staruml-reverse-db › mssql@10.0.6 › tedious@16.7.1 › @azure/identity@3.4.2 › @azure/msal-node@2.16.3Remediation: Upgrade to mssql@11.0.0.
Overview
@azure/msal-node is a Microsoft Authentication Library for Node
Affected versions of this package are vulnerable to Insufficiently Protected Credentials via insufficiently protected credentials, allowing an unauthorized attacker to disclose sensitive information over a network.
Remediation
Upgrade @azure/msal-node to version 7.0.1 or higher.
References
medium severity
- Vulnerable module: uuid
- Introduced through: mssql@10.0.6
Detailed paths
-
Introduced through: kkrisz1.staruml-reverse-db@kkrisz1/staruml-reverse-db › mssql@10.0.6 › tedious@16.7.1 › @azure/identity@3.4.2 › @azure/msal-node@2.16.3 › uuid@8.3.2Remediation: Upgrade to mssql@11.0.0.
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: @azure/identity
- Introduced through: mssql@10.0.6
Detailed paths
-
Introduced through: kkrisz1.staruml-reverse-db@kkrisz1/staruml-reverse-db › mssql@10.0.6 › tedious@16.7.1 › @azure/identity@3.4.2Remediation: Upgrade to mssql@11.0.0.
Overview
@azure/identity is a Provides credential implementations for Azure SDK libraries that can authenticate with Microsoft Entra ID
Affected versions of this package are vulnerable to Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') in the authentication process. An attacker can elevate privileges by exploiting race conditions during the token validation steps. This is only exploitable if the application is configured to use multiple threads or processes for handling authentication requests.
Notes:
An attacker who successfully exploited the vulnerability could elevate privileges and read any file on the file system with SYSTEM access permissions;
An attacker who successfully exploits this vulnerability can only obtain read access to the system files by exploiting this vulnerability. The attacker cannot perform write or delete operations on the files;
The vulnerability exists in the following credential types:
DefaultAzureCredentialandManagedIdentityCredential;The vulnerability exists in the following credential types:
ManagedIdentityApplication (.NET)
ManagedIdentityApplication (Java)
ManagedIdentityApplication (Node.js)
Remediation
Upgrade @azure/identity to version 4.2.1 or higher.