{
  "id": "CVE-2026-27699",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-27699",
  "published_at": "2026-02-25T14:58:56.815Z",
  "title": "Basic FTP has Path Traversal Vulnerability in its downloadToDir() method",
  "vendor": "patrickjuchli",
  "product": "basic-ftp",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-22",
  "cpes": [
    "cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.1,
    "nvd": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "patrickjuchli",
        "product": "basic-ftp",
        "ranges": [
          "\u003c 5.2.0"
        ],
        "fixed_in": [
          "5.2.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade basic-ftp to 5.2.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
