Vulnerabilities |
7 via 24 paths |
|---|---|
Dependencies |
447 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
- Vulnerable module: tmp
- Introduced through: snyk-python-plugin@3.2.1
Detailed paths
-
Introduced through: snyk@snyk/snyk › snyk-python-plugin@3.2.1 › tmp@0.2.3
Overview
Affected versions of this package are vulnerable to Directory Traversal via unsanitized input in the prefix, postfix, or dir parameters during path construction. An attacker can create files outside the intended temporary directory, potentially overwriting or placing files in sensitive locations, by supplying crafted values containing traversal sequences or absolute paths.
Note:
The fix for this issue was incomplete and led to a bypass, known as CVE-2026-49982. Users are recommended to upgrade to version 0.2.7 to get a complete fix for this issue.
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 tmp to version 0.2.6 or higher.
References
high severity
new
- Vulnerable module: tmp
- Introduced through: snyk-python-plugin@3.2.1
Detailed paths
-
Introduced through: snyk@snyk/snyk › snyk-python-plugin@3.2.1 › tmp@0.2.3
Overview
Affected versions of this package are vulnerable to Directory Traversal due to the improper sanitization of non-string values in the prefix, postfix, or dir parameters during path construction. An attacker can create files outside the intended temporary directory, potentially overwriting or placing files in sensitive locations, by supplying crafted values containing traversal sequences or absolute paths.
Note:
This issue is due to an incomplete fix for CVE-2026-44705. Added _assertPath as a guard does not account for non-string values.
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 tmp to version 0.2.7 or higher.
References
medium severity
new
- Vulnerable module: js-yaml
- Introduced through: snyk-policy@4.2.0, snyk-nodejs-lockfile-parser@2.8.1 and others
Detailed paths
-
Introduced through: snyk@snyk/snyk › snyk-policy@4.2.0 › js-yaml@3.15.0
-
Introduced through: snyk@snyk/snyk › snyk-nodejs-lockfile-parser@2.8.1 › @yarnpkg/core@4.9.0 › @yarnpkg/parsers@3.0.3 › js-yaml@3.15.0
-
Introduced through: snyk@snyk/snyk › snyk-nodejs-lockfile-parser@2.8.1 › @yarnpkg/core@4.9.0 › @yarnpkg/shell@4.1.3 › @yarnpkg/parsers@3.0.3 › js-yaml@3.15.0
-
Introduced through: snyk@snyk/snyk › snyk-docker-plugin@9.15.0 › snyk-nodejs-lockfile-parser@2.9.0 › @yarnpkg/core@4.9.0 › @yarnpkg/parsers@3.0.3 › js-yaml@3.15.0
-
Introduced through: snyk@snyk/snyk › snyk-nodejs-plugin@2.1.0 › snyk-nodejs-lockfile-parser@2.9.0 › @yarnpkg/core@4.9.0 › @yarnpkg/parsers@3.0.3 › js-yaml@3.15.0
-
Introduced through: snyk@snyk/snyk › snyk-docker-plugin@9.15.0 › snyk-nodejs-lockfile-parser@2.9.0 › @yarnpkg/core@4.9.0 › @yarnpkg/shell@4.1.3 › @yarnpkg/parsers@3.0.3 › js-yaml@3.15.0
-
Introduced through: snyk@snyk/snyk › snyk-nodejs-plugin@2.1.0 › snyk-nodejs-lockfile-parser@2.9.0 › @yarnpkg/core@4.9.0 › @yarnpkg/shell@4.1.3 › @yarnpkg/parsers@3.0.3 › js-yaml@3.15.0
Overview
js-yaml is a human-friendly data serialization language.
Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the storeMappingPair() function in loader.js when handling repeated aliases in merge sequences. An attacker can exhaust CPU resources and significantly degrade service availability by submitting malicious YAML documents.
Remediation
Upgrade js-yaml to version 4.2.0 or higher.
References
medium severity
- Vulnerable module: shescape
- Introduced through: @snyk/snyk-cocoapods-plugin@3.1.1, @snyk/snyk-hex-plugin@2.1.1 and others
Detailed paths
-
Introduced through: snyk@snyk/snyk › @snyk/snyk-cocoapods-plugin@3.1.1 › shescape@2.1.6
-
Introduced through: snyk@snyk/snyk › @snyk/snyk-hex-plugin@2.1.1 › 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.1 › 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-python-plugin@3.2.1
Detailed paths
-
Introduced through: snyk@snyk/snyk › snyk-python-plugin@3.2.1 › tmp@0.2.3
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: uuid
- Introduced through: uuid@8.3.2, snyk-nodejs-lockfile-parser@2.8.1 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-nodejs-lockfile-parser@2.8.1 › uuid@8.3.2
-
Introduced through: snyk@snyk/snyk › snyk-docker-plugin@9.15.0 › snyk-nodejs-lockfile-parser@2.9.0 › uuid@8.3.2
-
Introduced through: snyk@snyk/snyk › snyk-nodejs-plugin@2.1.0 › snyk-nodejs-lockfile-parser@2.9.0 › uuid@8.3.2
-
Introduced through: snyk@snyk/snyk › snyk-docker-plugin@9.15.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.3 › 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: 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.8.0 › 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.1, @snyk/snyk-hex-plugin@2.1.1 and others
-
Ignored path
∗
-
Expires
in 96 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.1 › shescape@2.1.6
-
Introduced through: snyk@snyk/snyk › @snyk/snyk-hex-plugin@2.1.1 › 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.1 › shescape@2.1.6
-
Introduced through: snyk@snyk/snyk › snyk-docker-plugin@9.15.0 › shescape@2.1.13
-
Introduced through: snyk@snyk/snyk › snyk-mvn-plugin@4.8.0 › shescape@2.1.13
-
Introduced through: snyk@snyk/snyk › snyk-gradle-plugin@7.0.0 › shescape@2.1.11
MPL-2.0 license