Vulnerabilities in pkg:pypi/pptagent

PACKAGE
Advisory Identifier: GHSA-pxhg-7xr2-w7xg
Advisory Summary

CVE-2026-42080 is a MODERATE (CVSS 4.6) arbitrary file write vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting PPTAgent libraries in the PyPI ecosystem. The issue involves arbitrary file write via `save_generated_slides`. Remediation is available by upgrading affected packages to version 1.1.36.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/pptagent

3 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-pxhg-7xr2-w7xg CVE-2026-42080 MODERATE PPTAgent: Arbitrary File Write via `save_generated_slides`
GHSA-89g2-xw5c-v95p CVE-2026-42079 HIGH PPTAgent: Arbitrary Code Execution via Python eval() of LLM-Generated Code with Builtins in Scope
GHSA-hrcw-xc63-g29m CVE-2026-42078 MODERATE PPTAgent: Arbitrary File Write + Directory Creation via markdown_table_to_image

CVE-2026-42080 at a Glance

CVE Identifier CVE-2026-42080
GHSA Identifier GHSA-pxhg-7xr2-w7xg
Severity MODERATE
CVSS v3.1 Base Score 4.6
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product PPTAgent
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.6

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:R/S:U/C:N/I:L/A:L).

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

How to Fix CVE-2026-42080

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

pptagent fixed: 1.1.36
pip install pptagent>=1.1.36
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 pptagent

How to Check if You Are Affected

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

pip show pptagent

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

Note: The pip show pptagent 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 PPTAgent, 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 > This vulnerability has been fixed in https://github.com/icip-cas/PPTAgent/commit/418491a9a1c02d9d93194b5973bb58df35cf9d00. The `save_generated_slides` MCP tool accepts a pptx_path argument and writes the generated PPTX file to that path without any workspace restriction or path validation: ```python # pptagent/mcp_server.py:288-300 async def save_generated_slides(pptx_path: str): """Save the generated slides to a PowerPoint file. Args: pptx_path: The path to save the PowerPoint file """ pptx = Path(pptx_path) assert len(self.slides), ( "No slides generated, please call `generate_slide` first" ) pptx.parent.mkdir(parents=True, exist_ok=True) # ← creates arbitrary directories self.empty_prs.save(pptx_path) # ← writes to arbitrary path ``` The call to `pptx.parent.mkdir(parents=True, exist_ok=True)` creates any intermediate directories, and `self.empty_prs.save(pptx_path)` writes a valid PPTX binary (ZIP archive) to the specified path. No is_relative_to(workspace) check is performed — contrast with download_file in deeppresenter/tools/search.py:290, which correctly enforces workspace confinement. The server changes directory to WORKSPACE (if set) on startup, so relative paths land in the workspace. Absolute paths, however, reach any filesystem location accessible to the server process. ## Impact The concrete attack scenarios include 1. Cron persistence (root-running server): `pptx_path = "/etc/cron.d/backdoor"` → writes a PPTX ZIP to a path the cron daemon reads; if the ZIP header is misinterpreted, this may corrupt cron or be exploitable depending on parser behaviour. 2. Dot-file overwrite: `pptx_path = "/home/user/.bashrc"` → overwrites shell init file with a binary blob containing arbitrary content in the PPTX's embedded comments/custom properties. 3. Directory traversal from workspace: `pptx_path = "../../.ssh/known_hosts.pptx"` → escapes workspace entirely. 4. Denial of service: `pptx_path = "/dev/sda"` writes to a raw device. ## Remediation The potential fix is something like: ```python async def save_generated_slides(pptx_path: str): workspace = Path(os.getcwd()).resolve() target = Path(pptx_path).resolve() if not target.is_relative_to(workspace): raise ValueError(f"Access denied: path outside workspace: {target}") target.parent.mkdir(parents=True, exist_ok=True) self.empty_prs.save(str(target)) ```

CVE-2026-42080 Affected PPTAgent Versions

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

References

Frequently Asked Questions

What is CVE-2026-42080?
CVE-2026-42080 is a security vulnerability in PPTAgent involving Arbitrary File Write via `save_generated_slides` under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which PPTAgent versions are affected?
Affected versions include releases prior to 1.1.36 across affected packages: pptagent.
What version fixes CVE-2026-42080?
Upgrading to 1.1.36 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pptagent affected?
Yes, pptagent is affected in releases prior to 1.1.36. Upgrade your dependency to 1.1.36 or later.
What is the CVSS score of CVE-2026-42080?
CVE-2026-42080 has a CVSS v3.1 base score of 4.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2026-42080?
CVE-2026-42080 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-42080?
Run the dependency tree command: 'pip show pptagent'. 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-pxhg-7xr2-w7xg",
  "modified" : "2026-05-05T18:57:31Z",
  "published" : "2026-05-05T18:57:31Z",
  "aliases" : [ "CVE-2026-42080" ],
  "summary" : "PPTAgent: Arbitrary File Write via `save_generated_slides`",
  "details" : "## Summary\n\n> This vulnerability has been fixed in https://github.com/icip-cas/PPTAgent/commit/418491a9a1c02d9d93194b5973bb58df35cf9d00.\n\nThe `save_generated_slides` MCP tool accepts a pptx_path argument and writes the generated PPTX file to that path without any workspace restriction or path validation:\n\n```python\n# pptagent/mcp_server.py:288-300\nasync def save_generated_slides(pptx_path: str):\n    \"\"\"Save the generated slides to a PowerPoint file.\n\n    Args:\n        pptx_path: The path to save the PowerPoint file\n    \"\"\"\n    pptx = Path(pptx_path)\n    assert len(self.slides), (\n        \"No slides generated, please call `generate_slide` first\"\n    )\n    pptx.parent.mkdir(parents=True, exist_ok=True)   # ← creates arbitrary directories\n    self.empty_prs.save(pptx_path)                    # ← writes to arbitrary path\n```\n\nThe call to `pptx.parent.mkdir(parents=True, exist_ok=True)` creates any intermediate directories, and `self.empty_prs.save(pptx_path)` writes a valid PPTX binary (ZIP archive) to the specified path. No is_relative_to(workspace) check is performed — contrast with download_file in deeppresenter/tools/search.py:290, which correctly enforces workspace confinement.\n\nThe server changes directory to WORKSPACE (if set) on startup, so relative paths land in the workspace. Absolute paths, however, reach any filesystem location accessible to the server process.\n\n## Impact\n\nThe concrete attack scenarios include\n\n1. Cron persistence (root-running server): `pptx_path = \"/etc/cron.d/backdoor\"` → writes a PPTX ZIP to a path the cron daemon reads; if the ZIP header is misinterpreted, this may corrupt cron or be exploitable depending on parser behaviour.\n2. Dot-file overwrite: `pptx_path = \"/home/user/.bashrc\"` → overwrites shell init file with a binary blob containing arbitrary content in the PPTX's embedded comments/custom properties.\n3. Directory traversal from workspace: `pptx_path = \"../../.ssh/known_hosts.pptx\"` → escapes workspace entirely.\n4. Denial of service: `pptx_path = \"/dev/sda\"` writes to a raw device.\n\n## Remediation\n\nThe potential fix is something like:\n\n```python\nasync def save_generated_slides(pptx_path: str):\n    workspace = Path(os.getcwd()).resolve()\n    target = Path(pptx_path).resolve()\n    if not target.is_relative_to(workspace):\n        raise ValueError(f\"Access denied: path outside workspace: {target}\")\n    target.parent.mkdir(parents=True, exist_ok=True)\n    self.empty_prs.save(str(target))\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pptagent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.36"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/icip-cas/PPTAgent/security/advisories/GHSA-pxhg-7xr2-w7xg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42080"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/icip-cas/PPTAgent/commit/418491a9a1c02d9d93194b5973bb58df35cf9d00"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/icip-cas/PPTAgent"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-05T18:57:31Z",
    "nvd_published_at" : "2026-05-04T17:16:25Z"
  }
}