{"id":"CVE-2026-68549","aliases":["GHSA-vgf9-9mxx-hq54"],"title":"ClickMigrate has Path Traversal in \"revision -m\" argument","summary":"ClickMigrate has Path Traversal in \"revision -m\" argument","severity":"low","cvss":3.3,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","vendor":"clickmigrate","product":"clickmigrate","ecosystem":"pip","affected":["clickmigrate < 1.0.3"],"patched":["clickmigrate 1.0.3"],"published":"2026-10-16","updated":"2026-10-16","sourceUpdated":"2026-10-16T19:30:04.006715210Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-vgf9-9mxx-hq54","references":[{"url":"https://github.com/QueueForge/ClickMigrate/security/advisories/GHSA-vgf9-9mxx-hq54"},{"url":"https://github.com/QueueForge/ClickMigrate/commit/6b1f2c0202630a82252b3331aa57e64327e112b6"},{"url":"https://github.com/QueueForge/ClickMigrate"},{"url":"https://github.com/advisories/GHSA-vgf9-9mxx-hq54"}],"tags":["osv","pip","ghsa"],"cwe":["CWE-22"],"ingestedAt":"2026-10-16T19:46:24.283Z","slug":"CVE-2026-68549","body":"## Overview\n\n### Impact\nA path traversal vulnerability in the `revision` command allowed a crafted migration name supplied via the `-m` argument to escape the intended migrations directory.\n\nUnder specific conditions, an attacker could cause the tool to create a `.sql` file in an arbitrary location writable by the user executing the command.\n\nThis issue is only exploitable if an attacker can influence the migration name passed to the `revision` command, such as through an insecure automation or CI/CD pipeline that forwards untrusted input.\n\n### Patches\nThe vulnerability has been fixed in version 1.0.3 by validating and sanitizing the migration name to prevent directory traversal.\n\nUsers should upgrade to version 1.0.3 or later.\n\n### Workarounds\nDo not pass untrusted input to the `revision -m` argument.\n\nIf upgrading is not immediately possible, ensure that only trusted users or automation can invoke the `revision` command and that migration names are validated before being passed to the tool.\n\n### References\n- Fix commit: https://github.com/QueueForge/ClickMigrate/commit/6b1f2c0202630a82252b3331aa57e64327e112b6\n\n## Affected packages\n\n- `clickmigrate < 1.0.3`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `clickmigrate 1.0.3`","depth":"sunlit","depthScore":18,"depthScoreParts":{"impact":18.2,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}