@eventcatalog/core is vulnerable to Path Traversal
50
Medium Risk
Affected versions of this package are vulnerable to Path Traversal via improper path sanitization in eventcatalog/src/utils/files.ts, where paths beginning with ../ fail to resolve correctly relative to the project directory due to inadequate normalization of path separators across Windows (), macOS, and Linux (/) systems. This flaw allows attackers to craft malicious relative paths (e.g., ../../../etc/passwd) that escape the project's root directory when processed by vulnerable file-handling functions. By exploiting this vulnerability, an attacker could read, modify, or exfiltrate sensitive system files by manipulating input to bypass intended access restrictions, potentially leading to information disclosure or system compromise.
You are affected if you are using a version that falls within the vulnerable range.
@eventcatalog/core is vulnerable to Path Traversal in versions 2.50.0 - 2.54.4.
Upgrade the @eventcatalog/core library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant