{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.2.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "f7bc9752a30cd154a59c4015d74de786cd02a0e9"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.2.0",
                "range": [
                  {
                    "fixed": "333a5af7f13ec3358aecd87c79db413fd06c30f8"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "333a5af7f13ec3358aecd87c79db413fd06c30f8"
            },
            {
              "fixed": "f7bc9752a30cd154a59c4015d74de786cd02a0e9"
            }
          ],
          "repo": "https://github.com/zcaceres/markdownify-mcp",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-wp59-q6fv-34rx"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140424.json"
  },
  "details": "markdownify-mcp before 1.2.0 contains a path traversal vulnerability in isWithinDirectory() that allows attackers to bypass MD_ALLOWED_PATHS and MD_SHARE_DIR restrictions. Attackers invoking local-file conversion tools directly or via prompt injection can target sibling directories sharing an allowed prefix to read files outside the allowlist.",
  "id": "CVE-2026-140424",
  "modified": "2026-12-01T23:45:41.485578716Z",
  "published": "2026-12-01T15:43:56.535Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140424.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/zcaceres/markdownify-mcp"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/zcaceres/markdownify-mcp/blob/v1.1.0/src/utils.ts#L106-L110"
    },
    {
      "type": "FIX",
      "url": "https://github.com/zcaceres/markdownify-mcp/commit/f7bc9752a30cd154a59c4015d74de786cd02a0e9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/zcaceres/markdownify-mcp/releases/tag/v1.2.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/zcaceres/markdownify-mcp/security/advisories/GHSA-wp59-q6fv-34rx"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140424"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/markdownify-mcp-before-1.2.0-path-allowlist-bypass-via-iswithindirectory-prefix-match"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match"
}