---
id: CVE-2026-108751
title: >-
  MoAI-ADK through 3.1.2 contains an improper link resolution vulnerability in
  the moai init template deployer that allows malicious repositories to
  overwrite files outside the project via a symlinked .moai-tmp staging path
summary: >-
  MoAI-ADK through 3.1.2 contains an improper link resolution vulnerability in
  the moai init template deployer that allows malicious repositories to
  overwrite files outside the project via a symlinked .moai-tmp staging path.
  Attackers can …
severity: medium
cvss: 4.4
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L'
cwe:
  - CWE-59
published: '2026-10-11'
updated: '2026-10-11'
sourceUpdated: '2026-10-11T13:17:19.957'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-108751'
references:
  - url: 'https://github.com/modu-ai/moai-adk'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/modu-ai/moai-adk/blob/4b2f203feda9c2cb6d7771969f4ec966842c8732/internal/template/deployer.go#L160-L203
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/modu-ai/moai-adk/blob/4b2f203feda9c2cb6d7771969f4ec966842c8732/internal/template/deployer.go#L19-L32
    label: disclosure@vulncheck.com
  - url: 'https://hackmd.io/@haind/moai-adk-template-staging-symlink-overwrite'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/moai-adk-through-3.1.2-symlink-following-via-moai-init-template-deployer
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-11T13:51:17.038Z'
---

## Overview

MoAI-ADK through 3.1.2 contains an improper link resolution vulnerability in the moai init template deployer that allows malicious repositories to overwrite files outside the project via a symlinked .moai-tmp staging path. Attackers can commit a symlink such as .claude/settings.json.moai-tmp so atomicWriteFile truncates and overwrites victim-writable files with MoAI template content.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
