Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. network-ai
  4. ›
  5. GHSA-2fmp-9rvw-hc96

GHSA-2fmp-9rvw-hc96: Network-AI: Poisoned environment backup manifest allows arbitrary recursive deletion during backup pruning

June 19, 2026

EnvironmentManager.listBackups() reads each backup’s _manifest.json and trusts the manifest’s path field. EnvironmentManager.pruneBackups() later passes that trusted entry.path directly to rmSync(entry.path, { recursive: true, force: true }).

An attacker who can place or modify a manifest inside data/<env>/.backups/<name>/_manifest.json can cause network-ai env backup prune --env <env> --keep <n> or any code path invoking pruneBackups() to recursively delete an arbitrary path accessible to the Network-AI process user. Confirmed in Network-AI 5.12.1.

References

  • github.com/Jovancoding/Network-AI/commit/a59c13a1f0ce0e8a0779a90343eef92fac5ab4c3
  • github.com/Jovancoding/Network-AI/releases/tag/v5.12.2
  • github.com/Jovancoding/Network-AI/security/advisories/GHSA-2fmp-9rvw-hc96
  • github.com/advisories/GHSA-2fmp-9rvw-hc96

Code Behaviors & Features

Detect and mitigate GHSA-2fmp-9rvw-hc96 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.12.2

Fixed versions

  • 5.12.2

Solution

Upgrade to version 5.12.2 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

npm/network-ai/GHSA-2fmp-9rvw-hc96.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:54 +0000.