{"answers":{"affected":"3 open source packages ship an affected version, including apm.","exploited":"There is no known exploitation of CVE-2026-45539 in the wild and no public exploit code.","fix":"Upgrade apm to 0.13.0 or later.","what":"CVE-2026-45539 is a high-severity path traversal vulnerability in microsoft apm, published on 15 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-45539 and fix it if it is affected.\n\nWhat it is: CVE-2026-45539 is a high-severity path traversal vulnerability in microsoft apm, published on 15 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-45539 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- apm (PyPI): affected from 0.5.4; fixed in 0.13.0\n- apm (PyPI): affected from 0.5.4; fixed in 0.13.0\n- apm (PyPI): affected from 0.5.4; fixed in 0.13.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-45539/ (Markdown: https://insights.sbomify.com/CVE-2026-45539/index.md)","id":"CVE-2026-45539","markdown":"https://insights.sbomify.com/CVE-2026-45539/index.md","name":"CVE-2026-45539","record":{"aliases":["GHSA-q5pp-gvjg-h7v4","PYSEC-2026-2377"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"AI agent dependency manager","requires_auth":"none","summary":"Attackers can use symlinks in AI agent dependencies to copy sensitive host files into project directories during installation, bypassing security scans.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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/\u003cx\u003e.prompt.md or .apm/agents/\u003cx\u003e.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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Microsoft APM: Symlinks under `.apm/prompts/` and `.apm/agents/` are dereferenced during `apm install`, copying host-local file contents into the project tree","id":"CVE-2026-45539","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"ESF-IDF: Remote Null Pointer Dereference in WebSocket Server","id":"CVE-2026-45541"},"packages":[{"ecosystem":"PyPI","fixed":["0.13.0"],"introduced":["0.5.4"],"last_affected":[],"package":"apm","purl":null,"source":"GHSA-q5pp-gvjg-h7v4"},{"ecosystem":"PyPI","fixed":["0.13.0"],"introduced":["0.5.4"],"last_affected":[],"package":"apm","purl":"pkg:pypi/apm","source":"GHSA-q5pp-gvjg-h7v4"},{"ecosystem":"PyPI","fixed":["0.13.0"],"introduced":["0.5.4"],"last_affected":[],"package":"apm","purl":"pkg:pypi/apm","source":"PYSEC-2026-2377"}],"prev":{"headline":"OpenSIPS: Stack Buffer Overflow in sip_to_json() Header Name Copy","id":"CVE-2026-45538"},"products":["apm"],"published":"2026-05-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-15","vendors":["microsoft"]},"summary":"Attackers can use symlinks in AI agent dependencies to copy sensitive host files into project directories during installation, bypassing security scans.","url":"https://insights.sbomify.com/CVE-2026-45539/"}