{"answers":{"affected":"1 open source package ship an affected version, including agent-framework.","exploited":"There is no known exploitation of PYSEC-2026-4388 in the wild and no public exploit code.","exposure":"","fix":"No fix has been published for PYSEC-2026-4388 yet. Limit exposure of the affected software until one is available.","what":"PYSEC-2026-4388 is a vulnerability in agent-framework, published on 17 Nov 2026."},"fix_prompt":"Check this codebase for PYSEC-2026-4388 and fix it if it is affected.\n\nWhat it is: PYSEC-2026-4388 is a vulnerability in agent-framework, published on 17 Nov 2026. \nExploitation: There is no known exploitation of PYSEC-2026-4388 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- agent-framework (PyPI): affected all versions; no fix listed\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/PYSEC-2026-4388/ (Markdown: https://insights.sbomify.com/PYSEC-2026-4388/index.md)","id":"PYSEC-2026-4388","markdown":"https://insights.sbomify.com/PYSEC-2026-4388/index.md","name":"PYSEC-2026-4388","record":{"aliases":[],"analysis":null,"analysis_generated_by":null,"assigner":null,"component":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"`agent-framework` versions 1.26.1 and 1.26.2 were uploaded to PyPI on 2026-11-17\nwithout authorization, as wheel-only releases repackaged from the legitimate 1.26.0 wheel.\nBoth added a `.pth` file, which runs the payload on every Python interpreter start\nin the environment where the package is installed, without needing an import.\nThe payload forks a background process that collects:\n- environment variables matching TOKEN, SECRET, KEY, AZURE, AWS, GITHUB, OPENAI and CI names\n- credential files such as `~/.azure`, `pip.conf`, `.npmrc`, `.netrc`,\n  `.git-credentials`, Docker config, the Hugging Face token, Azure DevOps agent\n  `.credentials` and `.env` files under `/app` and `/workspace`\n- secrets from other processes' `/proc/*/environ`\n- Azure DevOps OIDC tokens (via `SYSTEM_OIDCREQUESTURI` and `SYSTEM_ACCESSTOKEN`)\n- Azure managed identity tokens for ARM, Graph, Key Vault, Storage, ACR,\n  Azure DevOps and AzureADTokenExchange, plus IMDS instance metadata\nVersion 1.26.2 also requests GitHub Actions OIDC tokens and collects runner temp files.\nCollected data is compressed and POSTed to a webhook.site URL.\n\nIndicators of compromise:\n- 1.26.1: `agent_framework_meta.pth` and `agent_framework_meta/_telemetry.py`;\n  wheel sha256 d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110\n- 1.26.2: `af_runtime_diag.pth` and `af_runtime_diag.py`;\n  wheel sha256 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9\n- Exfiltration: hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry\n- User-Agent: `af-runtime-diagnostics/1` (1.26.1), `runtime-diagnostics/1` (1.26.2)\n- Environment variable `_AF_TEL` set in child processes\n\nAny system or CI job that installed either version should be treated as compromised.\nRotate every credential reachable from it, including cloud identities, CI tokens and\npackage registry tokens, and review cloud and CI audit logs for their use.\n\nPyPI Security worked with Microsoft to review the project's accounts and complete\nremediation steps. Both versions have been removed from PyPI. Version 1.26.0 is not affected.","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":false,"headline":"agent-framework 1.26.1 and 1.26.2 contain credential-stealing code","id":"PYSEC-2026-4388","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":null,"year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":1,"n_references":null,"n_vendor_status":1,"nickname":null,"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":[],"last_affected":[],"name_kind":null,"package":"agent-framework","purl":"pkg:pypi/agent-framework","purl_source":"advisory","scope":"upstream","source":"PYSEC-2026-4388"}],"products":[],"published":"2026-11-17","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"text_fixes":[],"updated":null,"vendor_status":[{"n_packages":1,"name":"Upstream","packages":[{"name":"agent-framework","purl":"pkg:pypi/agent-framework","sources":["PYSEC-2026-4388"],"status":"affected"}],"release":null,"scope":"upstream","status":"affected","statuses":{"affected":1},"vendor":null}],"vendors":null},"summary":null,"url":"https://insights.sbomify.com/PYSEC-2026-4388/"}