Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. network-ai
  4. ›
  5. GHSA-48x2-6pr9-2jjf

GHSA-48x2-6pr9-2jjf: Network-AI: EnvironmentManager.restore() backup ID path traversal copies arbitrary directories into environment data

June 19, 2026

EnvironmentManager.restore(env, backupId) computes the backup path with join(envDir, '.backups', backupId) and only checks that this path exists. It does not resolve the result or verify that it remains under data/<env>/.backups.

A caller can pass a traversal backup ID such as ../../../outside/source-dir to restore files from an arbitrary directory into the target environment data directory. 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-48x2-6pr9-2jjf
  • github.com/advisories/GHSA-48x2-6pr9-2jjf

Code Behaviors & Features

Detect and mitigate GHSA-48x2-6pr9-2jjf with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.12.2

Fixed versions

  • 5.12.2

Solution

Upgrade to version 5.12.2 or above.

Impact 6.1 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-23: Relative Path Traversal

Source file

npm/network-ai/GHSA-48x2-6pr9-2jjf.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:23:27 +0000.