Vulnerabilities in pkg:pypi/python-a2a

PACKAGE
Advisory Identifier: GHSA-rp38-pj7h-r8q2
Advisory Summary

CVE-2025-6167 is a MODERATE (CVSS 5.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Python a2a libraries in the PyPI ecosystem. The issue involves python-a2a has a path traversal in the create_workflow function. Remediation is available by upgrading affected packages to version 0.5.6.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/python-a2a

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-rp38-pj7h-r8q2 CVE-2025-6167 MODERATE python-a2a has a path traversal in the create_workflow function

CVE-2025-6167 at a Glance

CVE Identifier CVE-2025-6167
GHSA Identifier GHSA-rp38-pj7h-r8q2
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Python a2a
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2025-6167

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

python-a2a fixed: 0.5.6
pip install python-a2a>=0.5.6
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 python-a2a

How to Check if You Are Affected

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

pip show python-a2a

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

Note: The pip show python-a2a 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 Python a2a, 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

A vulnerability classified as critical has been found in themanojdesai python-a2a up to 0.5.5. Affected is the function create_workflow of the file python_a2a/agent_flow/server/api.py. The manipulation leads to path traversal. Upgrading to version 0.5.6 is able to address this issue. It is recommended to upgrade the affected component.

CVE-2025-6167 Affected Python a2a Versions

1 component(s)
Fixed Versions:
0.5.6
Product / Package Ecosystem Affected Versions Fixed Version
python-a2a
PyPI
< 0.5.6
0.5.6

References

Frequently Asked Questions

What is CVE-2025-6167?
CVE-2025-6167 is a security vulnerability in Python a2a involving python-a2a has a path traversal in the create_workflow function under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Python a2a versions are affected?
Affected versions include releases prior to 0.5.6 across affected packages: python-a2a.
What version fixes CVE-2025-6167?
Upgrading to 0.5.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is python-a2a affected?
Yes, python-a2a is affected in releases prior to 0.5.6. Upgrade your dependency to 0.5.6 or later.
What is the CVSS score of CVE-2025-6167?
CVE-2025-6167 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-6167?
CVE-2025-6167 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-2025-6167?
Run the dependency tree command: 'pip show python-a2a'. 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-rp38-pj7h-r8q2",
  "modified" : "2025-07-03T12:46:47Z",
  "published" : "2025-06-17T09:31:05Z",
  "aliases" : [ "CVE-2025-6167" ],
  "summary" : "python-a2a has a path traversal in the create_workflow function",
  "details" : "A vulnerability classified as critical has been found in themanojdesai python-a2a up to 0.5.5. Affected is the function create_workflow of the file python_a2a/agent_flow/server/api.py. The manipulation leads to path traversal. Upgrading to version 0.5.6 is able to address this issue. It is recommended to upgrade the affected component.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "python-a2a"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-6167"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/themanojdesai/python-a2a/issues/40"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/themanojdesai/python-a2a/issues/40#issuecomment-2904804388"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/python-a2a/PYSEC-2025-64.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/themanojdesai/python-a2a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/themanojdesai/python-a2a/releases/tag/v0.5.6"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.312642"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.312642"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.593613"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-17T15:37:14Z",
    "nvd_published_at" : "2025-06-17T07:15:18Z"
  }
}