/

CVE-2026-32820

Severity:

HIGH RISK

(7.5)

Directory Traversal (CWE-22) in dataCycle-CORE Docs

CVE-2026-32820

Deferred

Vulnerability type

Category:

Directory Traversal

CWE:

CWE-22

Impact:

Unauthorized File Disclosure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A directory traversal issue in the dataCycle-CORE documentation and static markdown renderer allows attacker-controlled path segments to escape the intended docs or static directories.

When exploited, an unauthenticated attacker can cause the application to render arbitrary .md files from the application or engine root, exposing internal content and potentially sensitive information.

Affected context

The vulnerability arises in deployments of dataCycle-CORE where the documentation or static markdown renderer accepts user-supplied path segments to locate .md files.

The renderer relies on the Rails HTML sanitizer to clean the input but does not constrain or normalize paths to stay within the intended docs or static directories.

As a result, crafted directory traversal sequences (such as climbing up the directory hierarchy) can cause the renderer to access markdown files located elsewhere under the application or engine root, as long as they are readable by the process.

Exploit preconditions

  • Attack surface: HTTP endpoints that serve documentation or static markdown content.
  • Required access: No authentication required; any network user who can reach the documentation or static content endpoints can supply crafted paths.
  • Trigger point: The attacker provides a malicious path segment (for example via a URL parameter or route component) that the renderer uses to select a .md file.
  • Why exploitation is possible: The application sanitizes input for HTML but not for filesystem safety, and it does not enforce that resolved paths remain under the designated docs or static directories, allowing traversal outside the intended root.

Why this happens

This issue stems from improper neutralization of path traversal sequences when constructing filesystem paths from user input, corresponding to CWE-22: Improper Limitation of a Pathname to a Restricted Directory.

The documentation and static markdown renderer accepts attacker-controlled path segments and only subjects them to Rails' HTML sanitizer, which is designed to remove unsafe HTML but not to validate or normalize filesystem paths.

Without canonicalization and explicit checks that the resulting path resides under a whitelisted directory, the system allows path components like ../ to escape the intended root and access unintended .md files.

Potential impact

  • Unauthorized reading and rendering of internal documentation files that were not meant to be publicly exposed.
  • Disclosure of configuration notes, operational procedures, or developer-centric markdown files that may contain sensitive information or hints about the system.
  • Increased attack surface through information exposure, such as revealing internal endpoints, credentials placeholders, or architectural details.
  • Potential compliance issues if internal documentation stored as markdown includes regulated or proprietary information.

General mitigation guidance

Effective mitigation focuses on constraining how file paths are derived from user input and enforcing strict directory boundaries.

Common defensive patterns include:

  • Resolving and canonicalizing user-supplied paths, then verifying that the resulting absolute path starts with an expected base directory (such as the docs or static root).
  • Using a whitelist of allowed documentation identifiers or slugs rather than accepting arbitrary path segments.
  • Avoiding direct concatenation of user input into filesystem paths and instead mapping logical names to physical files through a lookup table.
  • Applying least-privilege to the process and filesystem layout so that only documentation directories are readable by the serving component.
  • Treating HTML sanitization and path validation as separate concerns, ensuring that filesystem safety checks are performed independently of content sanitization.

How teams detect issues like this

Detection generally relies on a combination of code-level review and runtime monitoring:

  • Static analysis or custom linters that flag code paths where user input is used to build filesystem paths without canonicalization and base path checks.
  • Code review checklists that explicitly require reviewers to examine any file-serving or markdown-rendering endpoints for directory traversal protections.
  • Security tests or fuzzing that attempt to request documentation using traversal sequences and confirm whether content outside the intended directories is ever returned.
  • Application-level logging that records requested documentation paths, enabling detection of anomalous patterns (such as repeated use of ../) indicative of probing for traversal.

Sources

SourceLink
github.comgithub.com/datacycle-engine/dataCycle-CORE/security/advisories/GHSA-gc37-6w59-hj36

Frequently asked

questions

Yes. Any remote user who can access the documentation or static markdown endpoints can attempt to exploit the traversal behavior, even without authentication.

No special access is required beyond network reachability to the affected endpoints; the flaw exists at the request parameter or path level and can be triggered with crafted URLs.

Implement strict path handling by canonicalizing the requested path, verifying it remains within a designated base directory, or replacing free-form paths with a controlled mapping from safe identifiers to filenames.

Treat any user-influenced path as untrusted, enforce directory whitelists, avoid direct path concatenation, and incorporate security-focused reviews and automated checks for file access logic as part of the development lifecycle.

Find out what's already
exploitable in your codebase.