<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-30T11:40:23.945574+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-27699</id>
    <title>CVE-2026-27699 — Basic FTP has Path Traversal Vulnerability in its downloadToDir() method</title>
    <updated>2026-09-30T11:40:30.799493+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> patrickjuchli basic-ftp</p>
<p>The `basic-ftp` FTP client library for Node.js contains a path traversal vulnerability (CWE-22) in versions prior to 5.2.0 in the `downloadToDir()` method. A malicious FTP server can send directory listings with filenames containing path traversal sequences (`../`) that cause files to be written outside the intended download directory. Version 5.2.0 patches the issue.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-27699"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-5rq4-664w-9x2c</id>
    <title>GHSA-5rq4-664w-9x2c — Basic FTP has Path Traversal Vulnerability in its downloadToDir() method</title>
    <updated>2026-09-30T11:40:30.799684+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: basic-ftp</p>
<p>The `basic-ftp` library contains a path traversal vulnerability in the `downloadToDir()` method. A malicious FTP server can send directory listings with filenames containing path traversal sequences (`../`) that cause files to be written outside the intended download directory.</p>
<p>## Source-to-Sink Flow</p>
<p>```
1. SOURCE: FTP server sends LIST response
└─&gt; "-rw-r--r-- 1 user group 1024 Jan 20 12:00 ../../../etc/passwd"</p>
<p>2. PARSER: parseListUnix.ts:100 extracts filename
└─&gt; file.name = "../../../etc/passwd"</p>
<p>3. VALIDATION: parseListUnix.ts:101 checks
└─&gt; if (name === "." || name === "..") ❌ (only filters exact matches)
└─&gt; "../../../etc/passwd" !== "." &amp;&amp; !== ".." ✅ PASSES</p>
<p>4. SINK: Client.ts:707 uses filename directly
└─&gt; const localPath = join(localDirPath, file.name)
└─&gt; join("/safe/download", "../../../etc/passwd")
└─&gt; Result: "/safe/download/../../../etc/passwd" → resolves to "/etc/passwd"</p>
<p>5. FILE WRITE: Client.ts:512 opens file
└─&gt; fsOpen(localPath, "w") → writes to /etc/passwd (outside intended directory)
```</p>
<p>## Vulnerable Code</p>
<p>**File**: `src/Client.ts:707`</p>
<p>```typescript
protected async _downloadFromWorkingDir(localDirPath: string): Promise&lt;void&gt; {
await ensureLocalDirectory(localDirPath)
for (const file of await this.list()) {
const localPath = join(localDirPath, file.name) // ⚠️ VULNERABLE
// file.name comes from untrusted FTP server, no sanitization
await this.downloadTo(localPath, file.name)
}
}
```</p>
<p>**Root Cause**:
- Parser validation (`parseListUnix.ts:101`) only…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-5rq4-664w-9x2c"/>
  </entry>
</feed>
