CVE-2026-45539: CWE-59: Improper Link Resolution Before File Access ('Link Following') in microsoft apm
Microsoft APM is an open-source, community-driven dependency manager for AI agents. From 0.5.4 to 0.12.4, two primitive integrators in apm-cli enumerate package files with bare Path.glob() / Path.rglob() calls and read each match with Path.read_text(), transparently following symbolic links. A symlink committed inside a remote APM dependency under .apm/prompts/<x>.prompt.md or .apm/agents/<x>.agent.md is preserved verbatim into apm_modules/ on clone and then dereferenced during integration, with the resolved content written as a regular file into the project's deploy directories. The package content_hash, the pre-deploy SecurityGate scan, and apm audit do not flag this. The deploy roots are not added to the auto-generated .gitignore, so the resulting files are staged by git add by default. This vulnerability is fixed in 0.13.0.
AI Analysis
Technical Summary
Microsoft APM, an open-source dependency manager for AI agents, versions 0.5.4 to 0.12.4 contain a vulnerability (CVE-2026-45539) involving improper link resolution (CWE-59). Two integrators in apm-cli enumerate package files using Path.glob() and Path.rglob(), which follow symbolic links transparently. Symlinks committed inside remote dependencies under specific directories (.apm/prompts/ or .apm/agents/) are preserved and dereferenced during integration, causing the resolved content to be written as regular files into deployment directories. This process bypasses content hash verification, security scans, and audit checks. Additionally, deployment directories are not added to .gitignore, causing these files to be staged by default in git. The vulnerability is fixed starting with version 0.13.0.
Potential Impact
An attacker can craft symbolic links inside remote APM dependencies that, when integrated, cause arbitrary files to be written into deployment directories as regular files. This could lead to unintended disclosure of sensitive data or inclusion of malicious content in the project. The vulnerability does not affect confidentiality, integrity, or availability directly via exploitation but can cause information exposure (CWE-200) due to improper link following. The CVSS score is 7.4 (high), reflecting network attack vector, low attack complexity, no privileges required, user interaction needed, and high confidentiality impact. No known exploits have been reported in the wild.
Mitigation Recommendations
This vulnerability is fixed in Microsoft APM version 0.13.0. Users should upgrade to version 0.13.0 or later to remediate this issue. Until upgrading, users should carefully review and sanitize remote dependencies to avoid malicious symbolic links. Since no official patch link or advisory is provided, users should monitor the official Microsoft APM repository for the release of version 0.13.0 and apply the update promptly.
CVE-2026-45539: CWE-59: Improper Link Resolution Before File Access ('Link Following') in microsoft apm
Description
Microsoft APM is an open-source, community-driven dependency manager for AI agents. From 0.5.4 to 0.12.4, two primitive integrators in apm-cli enumerate package files with bare Path.glob() / Path.rglob() calls and read each match with Path.read_text(), transparently following symbolic links. A symlink committed inside a remote APM dependency under .apm/prompts/<x>.prompt.md or .apm/agents/<x>.agent.md is preserved verbatim into apm_modules/ on clone and then dereferenced during integration, with the resolved content written as a regular file into the project's deploy directories. The package content_hash, the pre-deploy SecurityGate scan, and apm audit do not flag this. The deploy roots are not added to the auto-generated .gitignore, so the resulting files are staged by git add by default. This vulnerability is fixed in 0.13.0.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Microsoft APM, an open-source dependency manager for AI agents, versions 0.5.4 to 0.12.4 contain a vulnerability (CVE-2026-45539) involving improper link resolution (CWE-59). Two integrators in apm-cli enumerate package files using Path.glob() and Path.rglob(), which follow symbolic links transparently. Symlinks committed inside remote dependencies under specific directories (.apm/prompts/ or .apm/agents/) are preserved and dereferenced during integration, causing the resolved content to be written as regular files into deployment directories. This process bypasses content hash verification, security scans, and audit checks. Additionally, deployment directories are not added to .gitignore, causing these files to be staged by default in git. The vulnerability is fixed starting with version 0.13.0.
Potential Impact
An attacker can craft symbolic links inside remote APM dependencies that, when integrated, cause arbitrary files to be written into deployment directories as regular files. This could lead to unintended disclosure of sensitive data or inclusion of malicious content in the project. The vulnerability does not affect confidentiality, integrity, or availability directly via exploitation but can cause information exposure (CWE-200) due to improper link following. The CVSS score is 7.4 (high), reflecting network attack vector, low attack complexity, no privileges required, user interaction needed, and high confidentiality impact. No known exploits have been reported in the wild.
Mitigation Recommendations
This vulnerability is fixed in Microsoft APM version 0.13.0. Users should upgrade to version 0.13.0 or later to remediate this issue. Until upgrading, users should carefully review and sanitize remote dependencies to avoid malicious symbolic links. Since no official patch link or advisory is provided, users should monitor the official Microsoft APM repository for the release of version 0.13.0 and apply the update promptly.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-12T17:48:47.878Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a074b98ec166c07b06a98f2
Added to database: 5/15/2026, 4:36:40 PM
Last enriched: 5/15/2026, 4:51:38 PM
Last updated: 5/15/2026, 6:10:37 PM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.