knowns versions before 0.31.0 fail to properly validate the x-opencode-directory request header in the /api/opencode proxy endpoint. Remote attackers can supply arbitrary directory paths to execute file operations outside the project root on the host system.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-73"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/88xxx/CVE-2026-88899.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.31.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "37db0561b37b48b8bd035a417d7f1da6258ae657"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v0.31.0",
"range": [
{
"fixed": "193ab83f6dbe1a6d4a0cf63283c57d6a93bea9ef"
}
],
"source": "REFERENCES_TAG"
}
]
}