CVE-2026-45539 Microsoft APM: Symlinks under `.apm/prompts/` and `.apm/agents/` are dereferenced during `apm install`, copying host-local file contents into the project tree
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi apm(PyPI) | >= 0.5.4, < 0.13.0; >= 0.5.4, <= 0.12.4 | 0.13.0 | Fixed |
| Microsoft apm | = >= 0.5.4, < 0.13.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi apm(PyPI) | >= 0.5.4, < 0.13.0 | 0.13.0 |
| Microsoft apm | = >= 0.5.4, < 0.13.0 | No fix listed |
| pypi apm(PyPI) | >= 0.5.4, <= 0.12.4 | No fix listed |
References
- https://github.com/microsoft/apm/security/advisories/GHSA-q5pp-gvjg-h7v4 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- github.com
- pypi.org product
- github.com vendor-advisory