# 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

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-15T16:02:37.591Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-q5pp-gvjg-h7v4, PYSEC-2026-2377
- Weaknesses: CWE-59, CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- microsoft apm: >= 0.5.4, < 0.13.0
- apm (PyPI): from 0.5.4 before 0.13.0

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`

## References

- <https://github.com/microsoft/apm/security/advisories/GHSA-q5pp-gvjg-h7v4> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45539> (advisory)
- <https://github.com/microsoft/apm/commit/f85b9f54ad303159f9c448268eb7005c319fe02a> (web)
- <https://github.com/microsoft/apm> (package)
- <https://github.com/microsoft/apm/releases/tag/v0.13.0> (web)
- <https://pypi.org/project/apm> (package)
- <https://github.com/advisories/GHSA-q5pp-gvjg-h7v4> (advisory)

## Sources

- CVE List: [CVE-2026-45539](https://www.cve.org/CVERecord?id=CVE-2026-45539), CVE Terms of Use, modified 2026-05-15
- GitHub Advisory Database: [GHSA-q5pp-gvjg-h7v4](https://github.com/advisories/GHSA-q5pp-gvjg-h7v4), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-45539](https://nvd.nist.gov/vuln/detail/CVE-2026-45539), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2377](https://osv.dev/vulnerability/PYSEC-2026-2377), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-45539 · Whole record: https://cve.day/CVE-2026-45539.json · Rebuilt by cve.day 2026-11-25T22:59:21.828Z
