{"id":"CVE-2026-63415","aliases":["GHSA-c3cj-3p6p-j822"],"title":"Jane: $ref resolution performs SSRF + LFI (path traversal) at code-generation time (jane-php)","summary":"Jane: $ref resolution performs SSRF + LFI (path traversal) at code-generation time (jane-php)","severity":"high","cvss":7,"cwe":["CWE-22","CWE-98","CWE-611","CWE-918"],"vendor":"jane-php","product":"jane-php/open-api-3","ecosystem":"composer","affected":["jane-php/open-api-3 < 7.12.0"],"patched":["jane-php/open-api-3 7.12.0"],"published":"2026-11-20","updated":"2026-11-20","sourceUpdated":"2026-11-20T00:07:33Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-c3cj-3p6p-j822","references":[{"url":"https://github.com/janephp/janephp/security/advisories/GHSA-c3cj-3p6p-j822"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63415"},{"url":"https://github.com/janephp/janephp/pull/961"},{"url":"https://github.com/janephp/janephp/commit/75f2bbf79ca2f2eeb13080a2cebded1263396b49"},{"url":"https://github.com/janephp/janephp/releases/tag/v7.12.0"},{"url":"https://github.com/advisories/GHSA-c3cj-3p6p-j822"}],"tags":["ghsa","composer","cve.org","exploit-available"],"epss":0.00512,"epssPercentile":0.45185,"cvssVector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","exploitAvailable":true,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-19T15:14:49.904788Z"},"cvssSource":"cna","ingestedAt":"2026-11-18T22:21:17.802Z","exploits":{"github":1,"githubRepos":["https://github.com/googlesky/CVE-2026-63415"],"checkedAt":"2026-12-02T22:46:07.824Z"},"slug":"CVE-2026-63415","body":"## Overview\n\n### Summary\njane-php resolves external `$ref` targets at code-generation time via `file_get_contents($ref)` (jane-php/json-schema-runtime/Reference.php::doResolve) with no scheme/path restriction. An attacker-controlled OpenAPI document can therefore cause: `$ref: 'http://attacker/x'` -> SSRF (HTTP GET at gen time; response inlined = RFI); `$ref: '/abs/file'` -> LFI; `$ref: '../secret.yaml'` -> path-traversal LFI (CWE-22, arbitrary local JSON/YAML read). Verified 7.11.2/PHP8.1 (listener records the fetch; remote + `../` local content inlined into the generated code). `file://` rejected. CWE-918/CWE-98/CWE-611/CWE-22.\n\n### Details\n```php\n// Reference.php::doResolve()\n$contents = file_get_contents($fragment); // $fragment = attacker-controlled $ref URI\n```\n\n### Impact\nGenerating PHP with jane from an attacker-influenced OpenAPI document issues HTTP requests to attacker-chosen URLs (SSRF — internal services, cloud metadata) and reads arbitrary local files (LFI via `../`), at build/CI time, inlining results into the output.\n\n### PoC\n`reproduce.sh` (+ `make_spec.py`, `gen.php`): runs jane on a remote-$ref spec (local listener records the SSRF, output checked for the inlined response) and a `../`-traversal local-$ref spec (output checked for the leaked file).\n\n### Suggested fix\nDisable remote `$ref` fetching by default (or allow-list); confine local `$ref` to the spec directory (reject absolute paths and `..`). Don't `file_get_contents($ref)` on attacker-controlled URIs.\n\n[maintainer-report.txt](https://github.com/user-attachments/files/29497381/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497382/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497384/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497385/make_spec.py)\n\n## Affected packages\n\n- `jane-php/open-api-3 < 7.12.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `jane-php/open-api-3 7.12.0`","depth":"midnight","depthScore":51,"depthScoreParts":{"impact":38.5,"likelihood":0.1,"exploitation":12,"ransomware":0},"changes":[{"seq":241547,"id":"CVE-2026-63415","ts":1795103720369,"field":"exploit_available","old":"false","new":"true"}]}