CVE-2026-86541
Received Received - Intake

Path Traversal in CodeSandbox HandleCodeReplace Function

Vulnerability report for CVE-2026-86541, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-07

Last updated on: 2026-09-07

Assigner: VulnCheck

Description

knowns versions before 0.30.0 contain a path traversal vulnerability in the handleCodeReplace() function that allows attackers to overwrite arbitrary files outside the project root. Attackers can supply absolute paths or relative paths containing directory traversal sequences to write malicious content to sensitive files like shell startup scripts or SSH configuration files.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-07
Last Modified
2026-09-07
Generated
2026-09-08
AI Q&A
2026-09-08
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects software versions before 0.30.0. It involves a path traversal issue in the handleCodeReplace() function. Attackers can exploit this to overwrite arbitrary files outside the project directory by using absolute paths or relative paths with directory traversal sequences. This could allow writing malicious content to sensitive files such as shell startup scripts or SSH configuration files.

Detection Guidance

To detect this vulnerability, check for versions of the affected software before 0.30.0. Inspect file writes in the handleCodeReplace() function for absolute paths or directory traversal sequences like ../. Monitor logs for unexpected file modifications in sensitive directories such as shell startup scripts or SSH config files.

Impact Analysis

An attacker could exploit this to overwrite critical system files, leading to potential system compromise. This might include modifying startup scripts to execute malicious code, altering SSH configurations to gain unauthorized access, or disrupting services by overwriting configuration files. The impact depends on the files targeted and the attacker's goals.

Compliance Impact

This vulnerability could lead to non-compliance with GDPR and HIPAA by allowing attackers to overwrite sensitive files such as shell startup scripts or SSH configurations. This may result in unauthorized access, data breaches, or system compromise, violating confidentiality and integrity requirements of these regulations.

Mitigation Strategies

Immediately upgrade to version 0.30.0 or later to patch the path traversal vulnerability in handleCodeReplace(). Review file write operations in the application to ensure no arbitrary file writes are possible. Monitor for suspicious file modifications in sensitive directories.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-86541. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart