{"answers":{"affected":"3 open source packages ship an affected version, including github.com/nektos/act. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34041 exists.","fix":"Upgrade github.com/nektos/act to 0.2.86 or later.","what":"CVE-2026-34041 is a high-severity code injection vulnerability in nektos act, published on 31 Mar 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-34041 and fix it if it is affected.\n\nWhat it is: CVE-2026-34041 is a high-severity code injection vulnerability in nektos act, published on 31 Mar 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: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34041 exists.\n\nAffected packages and fixed versions:\n- github.com/nektos/act (Go): affected all versions; fixed in 0.2.86\n- github.com/nektos/act (Go): affected all versions; fixed in 0.2.86\n- github.com/nektos/act (Go): affected all versions; fixed in 0.2.86\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-34041/ (Markdown: https://insights.sbomify.com/CVE-2026-34041/index.md)","id":"CVE-2026-34041","markdown":"https://insights.sbomify.com/CVE-2026-34041/index.md","name":"CVE-2026-34041","record":{"aliases":["GHSA-xmgr-9pqc-h5vw","GO-2026-4891"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub Actions runner","requires_auth":"none","summary":"Attackers can inject environment variables or modify PATH via workflow commands, potentially leading to code execution or privilege escalation in local GitHub Actions runners.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"act","vendor":"nektos"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"act is a project which allows for local running of github actions. Prior to version 0.2.86, act unconditionally processes the deprecated ::set-env:: and ::add-path:: workflow commands, which was disabled due to environment injection risks. When a workflow step echoes untrusted data to stdout, an attacker can inject these commands to set arbitrary environment variables or modify the PATH for all subsequent steps in the job. This issue has been patched in version 0.2.86.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"act: Unrestricted set-env and add-path command processing enables environment injection","id":"CVE-2026-34041","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"act: actions/cache server allows malicious cache injection","id":"CVE-2026-34042"},"packages":[{"ecosystem":"Go","fixed":["0.2.86"],"introduced":["0"],"last_affected":[],"package":"github.com/nektos/act","purl":null,"source":"GHSA-xmgr-9pqc-h5vw"},{"ecosystem":"Go","fixed":["0.2.86"],"introduced":["0"],"last_affected":[],"package":"github.com/nektos/act","purl":"pkg:golang/github.com/nektos/act","source":"GHSA-xmgr-9pqc-h5vw"},{"ecosystem":"Go","fixed":["0.2.86"],"introduced":["0"],"last_affected":[],"package":"github.com/nektos/act","purl":"pkg:golang/github.com/nektos/act","source":"GO-2026-4891"}],"prev":{"headline":"Moby: AuthZ plugin bypass with oversized request body","id":"CVE-2026-34040"},"products":["act"],"published":"2026-03-31","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":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-02","vendors":["nektos"]},"summary":"Attackers can inject environment variables or modify PATH via workflow commands, potentially leading to code execution or privilege escalation in local GitHub Actions runners.","url":"https://insights.sbomify.com/CVE-2026-34041/"}