CVE-2026-40313: CWE-829: Inclusion of Functionality from Untrusted Control Sphere in MervinPraison PraisonAI
PraisonAI versions 4. 5. 139 and below have a critical vulnerability in their GitHub Actions workflows where the default behavior of actions/checkout leads to credential leakage. This occurs because the GITHUB_TOKEN and sometimes ACTIONS_RUNTIME_TOKEN are persisted in the . git/config file and can be inadvertently included in uploaded artifacts. Since PraisonAI is a public repository, any user with read access can download these artifacts and extract these tokens, potentially enabling malicious code injection, supply chain compromise, and theft of repository secrets. The vulnerability is fixed in version 4. 5. 140.
AI Analysis
Technical Summary
CVE-2026-40313 affects PraisonAI, a multi-agent teams system, due to insecure GitHub Actions workflow configurations in versions prior to 4.5.140. The workflows use actions/checkout without setting persist-credentials: false, causing the GITHUB_TOKEN and sometimes ACTIONS_RUNTIME_TOKEN to be saved in the .git/config file. When subsequent workflow steps upload artifacts, these tokens may be included and exposed to any user with read access to the public repository. This exposure allows attackers to push malicious code, poison releases and package repositories, steal secrets, and perform full supply chain compromises. The issue spans multiple workflow and action files and has been addressed in version 4.5.140.
Potential Impact
The vulnerability allows unauthorized users with read access to the public PraisonAI repository to obtain sensitive GitHub tokens from workflow artifacts. This can lead to malicious code injection, poisoning of releases and package repositories (PyPI/Docker), theft of repository secrets, and a full supply chain compromise affecting all downstream users. The CVSS score of 9.1 reflects a critical impact with high confidentiality and integrity consequences but no direct availability impact.
Mitigation Recommendations
Upgrade PraisonAI to version 4.5.140 or later, where this issue has been fixed by properly configuring GitHub Actions workflows to prevent credential leakage. Specifically, workflows should set persist-credentials: false in actions/checkout steps to avoid persisting tokens in .git/config. Since this is a repository configuration issue, patching the workflows is the recommended remediation. Patch status is not explicitly stated as 'official-fix' but the issue is fixed in version 4.5.140, so upgrading is the effective fix.
CVE-2026-40313: CWE-829: Inclusion of Functionality from Untrusted Control Sphere in MervinPraison PraisonAI
Description
PraisonAI versions 4. 5. 139 and below have a critical vulnerability in their GitHub Actions workflows where the default behavior of actions/checkout leads to credential leakage. This occurs because the GITHUB_TOKEN and sometimes ACTIONS_RUNTIME_TOKEN are persisted in the . git/config file and can be inadvertently included in uploaded artifacts. Since PraisonAI is a public repository, any user with read access can download these artifacts and extract these tokens, potentially enabling malicious code injection, supply chain compromise, and theft of repository secrets. The vulnerability is fixed in version 4. 5. 140.
CVSS v3.1
Score 9.1critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40313 affects PraisonAI, a multi-agent teams system, due to insecure GitHub Actions workflow configurations in versions prior to 4.5.140. The workflows use actions/checkout without setting persist-credentials: false, causing the GITHUB_TOKEN and sometimes ACTIONS_RUNTIME_TOKEN to be saved in the .git/config file. When subsequent workflow steps upload artifacts, these tokens may be included and exposed to any user with read access to the public repository. This exposure allows attackers to push malicious code, poison releases and package repositories, steal secrets, and perform full supply chain compromises. The issue spans multiple workflow and action files and has been addressed in version 4.5.140.
Potential Impact
The vulnerability allows unauthorized users with read access to the public PraisonAI repository to obtain sensitive GitHub tokens from workflow artifacts. This can lead to malicious code injection, poisoning of releases and package repositories (PyPI/Docker), theft of repository secrets, and a full supply chain compromise affecting all downstream users. The CVSS score of 9.1 reflects a critical impact with high confidentiality and integrity consequences but no direct availability impact.
Mitigation Recommendations
Upgrade PraisonAI to version 4.5.140 or later, where this issue has been fixed by properly configuring GitHub Actions workflows to prevent credential leakage. Specifically, workflows should set persist-credentials: false in actions/checkout steps to avoid persisting tokens in .git/config. Since this is a repository configuration issue, patching the workflows is the recommended remediation. Patch status is not explicitly stated as 'official-fix' but the issue is fixed in version 4.5.140, so upgrading is the effective fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T21:41:54.505Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ddbc3182d89c981fc24dd5
Added to database: 4/14/2026, 4:01:53 AM
Last enriched: 4/21/2026, 6:15:42 AM
Last updated: 5/29/2026, 3:25:44 PM
Views: 121
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.